blob: 65fbf0c73bade341cffe24f25790dcffbc149545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
$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';
}
|