diff options
author | phk <phk@FreeBSD.org> | 1994-09-27 20:42:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-09-27 20:42:59 +0000 |
commit | 77843a901a451b12851b0d452b11d042cd4b4c44 (patch) | |
tree | c5e32cd4563c951511be132c78835d4a367e8cc8 /sys/msdosfs/msdosfs_conv.c | |
parent | 5c792336a6f2f7dfe1d230522764b075bba3a7a7 (diff) | |
download | FreeBSD-src-77843a901a451b12851b0d452b11d042cd4b4c44.zip FreeBSD-src-77843a901a451b12851b0d452b11d042cd4b4c44.tar.gz |
Added declarations, fixed bugs due to missing decls. At least one of them
could panic a system. (I know, it paniced mine!).
Diffstat (limited to 'sys/msdosfs/msdosfs_conv.c')
-rw-r--r-- | sys/msdosfs/msdosfs_conv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/msdosfs/msdosfs_conv.c b/sys/msdosfs/msdosfs_conv.c index da8ce97..035eb05 100644 --- a/sys/msdosfs/msdosfs_conv.c +++ b/sys/msdosfs/msdosfs_conv.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: msdosfs_conv.c,v 1.1 1994/09/19 15:41:40 dfr Exp $ */ /* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */ /* @@ -23,6 +23,7 @@ #include <sys/param.h> #include <sys/time.h> #include <sys/kernel.h> /* defines tz */ +#include <sys/systm.h> /* defines tz */ /* * MSDOSFS include files. @@ -166,8 +167,9 @@ dos2unixtime(dd, dt, tsp) */ month = (dd & DD_MONTH_MASK) >> DD_MONTH_SHIFT; if (month == 0) { - printf("dos2unixtime(): month value out of range (%d)\n", - month); + printf( + "dos2unixtime(): month value out of range (%ld)\n", + month); month = 1; } for (m = 0; m < month - 1; m++) { |