]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Replace the legacy ULONG_LONG_MAX with the C99 ULLONG_MAX
authorAdrian Bunk <bunk@stusta.de>
Thu, 16 May 2019 19:20:07 +0000 (22:20 +0300)
committerAdrian Bunk <bunk@stusta.de>
Fri, 17 May 2019 06:39:46 +0000 (09:39 +0300)
src/journal-remote/journal-remote-main.c
src/shutdown/shutdown.c

index 2321a91e7bd57d0e1a6b0642ca5ab9b2ec9f284e..d32c51c3cec376411797033ce936d412626bdc46 100644 (file)
@@ -528,7 +528,7 @@ static int dispatch_http_event(sd_event_source *event,
                                void *userdata) {
         MHDDaemonWrapper *d = userdata;
         int r;
-        MHD_UNSIGNED_LONG_LONG timeout = ULONG_LONG_MAX;
+        MHD_UNSIGNED_LONG_LONG timeout = ULLONG_MAX;
 
         assert(d);
 
@@ -538,7 +538,7 @@ static int dispatch_http_event(sd_event_source *event,
                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
                                        "MHD_run failed!");
         if (MHD_get_timeout(d->daemon, &timeout) == MHD_NO)
-                timeout = ULONG_LONG_MAX;
+                timeout = ULLONG_MAX;
 
         r = sd_event_source_set_time(d->timer_event, timeout);
         if (r < 0) {
index 35b2c2aa463bb62b18de938d3e0679c6245719dd..9623fe9ea29f3cf06b57ab357507c19c9e101988 100644 (file)
@@ -212,7 +212,7 @@ static int sync_making_progress(unsigned long long *prev_dirty) {
 }
 
 static void sync_with_progress(void) {
-        unsigned long long dirty = ULONG_LONG_MAX;
+        unsigned long long dirty = ULLONG_MAX;
         unsigned checks;
         pid_t pid;
         int r;