1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-25 18:50:18 +03:00

Replace the legacy ULONG_LONG_MAX with the C99 ULLONG_MAX

This commit is contained in:
Adrian Bunk 2019-05-16 22:20:07 +03:00
parent 56fb30d93e
commit 8a8e84d297
2 changed files with 3 additions and 3 deletions

View 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) {

View 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;