From 9134aab4073a8be6bb529aeb05e8c5f4be69540f Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 14 May 2016 21:46:05 +0000 Subject: Prepare for transition from xlookup64 to xlookup * fcntl.c (print_fcntl, SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Cast 2nd argument of xlookup to unsigned long. * prctl.c (SYS_FUNC(prctl)): Likewise. * sched.c (SYS_FUNC(sched_getscheduler)): Likewise. * time.c (do_adjtimex): Likewise. * ioprio.c (sprint_ioprio): Change type of the argument and local variables from int to unsigned int. * keyctl.c (print_keyring_serial_number): Cast 2nd argument of xlookup to unsigned int. * net.c (tprint_sock_type): Change type of the argument to unsigned int. * printmode.c (sprintmode): Likewise. * printsiginfo.c (printsigval): Change type of si_code argument to unsigned int. --- keyctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyctl.c') diff --git a/keyctl.c b/keyctl.c index 81391a37f..50d6fb482 100644 --- a/keyctl.c +++ b/keyctl.c @@ -34,7 +34,7 @@ typedef int32_t key_serial_t; static void print_keyring_serial_number(key_serial_t id) { - const char *str = xlookup(key_spec, id); + const char *str = xlookup(key_spec, (unsigned int) id); if (str) tprints(str); -- cgit v1.2.3