diff options
author | Jim Meyering <jim@meyering.net> | 2002-04-28 23:47:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-04-28 23:47:53 +0000 |
commit | 1e2a59b68a9189272008fa941d6a3ab0ec0a3175 (patch) | |
tree | 7222c96485a4dc02c0c728d9222ac7c05cf7c83d | |
parent | 7fb35293761539304c898a9ccd19a8c88d856ee4 (diff) | |
download | coreutils-1e2a59b68a9189272008fa941d6a3ab0ec0a3175.tar.xz |
(PIDSTR_DECL_AND_INIT): Cast ut_pid value to int.
-rw-r--r-- | src/who.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -82,7 +82,7 @@ # define UT_PID(U) ((U)->ut_pid) # define PIDSTR_DECL_AND_INIT(Var, Utmp_ent) \ char Var[INT_STRLEN_BOUND (Utmp_ent->ut_pid) + 1]; \ - sprintf (Var, "%d", Utmp_ent->ut_pid) + sprintf (Var, "%d", (int) (Utmp_ent->ut_pid)) #else # define UT_PID(U) 0 # define PIDSTR_DECL_AND_INIT(Var, Utmp_ent) \ |