2013-09-26 17:14:40 +02:00

52 lines
1.0 KiB
Plaintext

$NetBSD: patch-ad,v 1.2 2004/03/20 14:42:56 taca Exp $
--- quotatool.c.orig 1997-04-01 08:02:42.000000000 +0900
+++ quotatool.c
@@ -49,15 +49,15 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <ufs/ufs/quota.h>
#include <pwd.h>
#include <grp.h>
#include <fstab.h>
#include "quotatool.h"
-void usage ();
-void do_test ();
+void usage (void);
+void do_test (void);
u_long convert_block (char*);
u_long convert_inode (char*);
time_t convert_time (char*);
@@ -267,11 +267,11 @@ convert_block(p_block)
char *p_block;
{
u_long value = 0;
- char unit = NULL;
+ char unit = 0;
u_long r_blocks;
if (sscanf(p_block, "%lu%c", &value, &unit) != 2) {
- if (unit == NULL)
+ if (unit == 0)
unit = 'k';
}
@@ -299,11 +299,11 @@ convert_time(p_time)
char *p_time;
{
u_long value = 0;
- char unit = NULL;
+ char unit = 0;
time_t r_time;
if (sscanf(p_time, "%ld%c", &value, &unit) != 2) {
- if (unit == NULL)
+ if (unit == 0)
unit = 'd';
}