diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-12-14 23:23:43 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-12-14 23:23:43 +0100 |
commit | d2941c97439c0ecba5280f5e05299810dbc3a4da (patch) | |
tree | 73907e8574466b7c72471af526465b300a9f1fdc | |
parent | 383a04e6d4d263e1075314022720531f5eecddfd (diff) | |
download | rtc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); |