summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-12-03 22:54:04 +0000
committerphk <phk@FreeBSD.org>1994-12-03 22:54:04 +0000
commite3931eff1e96f7a7651efdf134572226c95a862a (patch)
tree911522412fd6b3a5a2edc89d29d657530a4292bb /usr.sbin
parent981f60f5274efb7695ed4737291307a55664ea5b (diff)
downloadFreeBSD-src-e3931eff1e96f7a7651efdf134572226c95a862a.zip
FreeBSD-src-e3931eff1e96f7a7651efdf134572226c95a862a.tar.gz
Fix this to work under 2.0 also.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctm/ctm_scan/ctm_scan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ctm/ctm_scan/ctm_scan.c b/usr.sbin/ctm/ctm_scan/ctm_scan.c
index e38a9f0..e925b0c 100644
--- a/usr.sbin/ctm/ctm_scan/ctm_scan.c
+++ b/usr.sbin/ctm/ctm_scan/ctm_scan.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: ctm_scan.c,v 1.5 1994/09/25 20:45:55 phk Exp $
+ * $Id: ctm_scan.c,v 1.6 1994/09/26 06:00:55 phk Exp $
*
*/
#include <stdio.h>
@@ -82,7 +82,7 @@ Do(char *path)
switch(st.st_mode & S_IFMT) {
case S_IFDIR:
if(!CheckMode) {
- i = printf("d %s %d %d %d - - -\n",
+ i = printf("d %s %d %lu %lu - - -\n",
buf,st.st_mode & (~S_IFMT),st.st_uid,st.st_gid);
if(!i)
exit(-1);
@@ -119,9 +119,9 @@ Do(char *path)
} else {
if(!l)
j=2;
- i = printf("f %s %o %d %d %d %d %s\n",
+ i = printf("f %s %o %lu %lu %u %lu %s\n",
buf,st.st_mode & (~S_IFMT),st.st_uid,st.st_gid,
- j,st.st_size,MD5End(&ctx));
+ j,(u_long)st.st_size,MD5End(&ctx));
if(!i) exit(-1);
}
break;
OpenPOWER on IntegriCloud