projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb3529
)
(PIDSTR_DECL_AND_INIT): Cast ut_pid value to int.
author
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 23:47:53 +0000
(23:47 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 23:47:53 +0000
(23:47 +0000)
src/who.c
patch
|
blob
|
history
diff --git
a/src/who.c
b/src/who.c
index
8dcc917
..
3507b28
100644
(file)
--- a/
src/who.c
+++ b/
src/who.c
@@
-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) \