summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-12-14 23:23:43 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-12-14 23:23:43 +0100
commitd2941c97439c0ecba5280f5e05299810dbc3a4da (patch)
tree73907e8574466b7c72471af526465b300a9f1fdc
parent383a04e6d4d263e1075314022720531f5eecddfd (diff)
downloadrtc-tools-d2941c97439c0ecba5280f5e05299810dbc3a4da.tar.gz
rtc: correct flags type
The values coming from the kernel are unsigned, ensure they are interpreted that way. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtc.c b/rtc.c
index be59315..b83c1ef 100644
--- a/rtc.c
+++ b/rtc.c
@@ -52,7 +52,7 @@ int main(int argc, char **argv)
struct rtc_time tm;
struct rtc_wkalrm alm;
int fd, rc, cmd = 0;
- int flags;
+ unsigned int flags;
if (argc < 2)
usage(argv[0]);