git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18381a
)
Silence a compiler warning on Sun OS systems.
author
Wayne Davison
<wayned@samba.org>
Sun, 4 Jan 2004 07:06:05 +0000
(07:06 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 4 Jan 2004 07:06:05 +0000
(07:06 +0000)
getgroups.c
patch
|
blob
|
history
tls.c
patch
|
blob
|
history
diff --git
a/getgroups.c
b/getgroups.c
index b3202c3bd0a52698d5700095e614fadc49f233c9..3aa152fc78fc64d386eb087c2e778d00b830e583 100644
(file)
--- a/
getgroups.c
+++ b/
getgroups.c
@@
-43,7
+43,7
@@
main(UNUSED(int argc), UNUSED(char *argv[]))
}
for (i = 0; i < n; i++)
- printf("%
u ",
list[i]);
+ printf("%
lu ", (unsigned long)
list[i]);
printf("\n");
return 0;
diff --git
a/tls.c
b/tls.c
index 1903e1f739879db6d842a0db2d5c7b796d7caca6..5facf2e8e6a46ad7311be95304d2a0879dc63122 100644
(file)
--- a/
tls.c
+++ b/
tls.c
@@
-116,10
+116,9
@@
static void list_file (const char *fname)
/* NB: need to pass size as a double because it might be be
* too large for a long. */
- printf("%s %12.0f %6ld.%-6ld %6d %s %s%s\n",
- permbuf, (double) buf.st_size,
- (long) buf.st_uid, (long) buf.st_gid,
- buf.st_nlink,
+ printf("%s %12.0f %6ld.%-6ld %6ld %s %s%s\n",
+ permbuf, (double)buf.st_size, (long)buf.st_uid,
+ (long)buf.st_gid, (long)buf.st_nlink,
datebuf, fname, linkbuf);
}