aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/vbackup
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/config.c8
-rw-r--r--src/cmd/vbackup/nfs3srv.h2
-rw-r--r--src/cmd/vbackup/queue.h2
-rw-r--r--src/cmd/vbackup/vbackup.c2
-rw-r--r--src/cmd/vbackup/vftp.c2
-rw-r--r--src/cmd/vbackup/vmount0.c2
-rw-r--r--src/cmd/vbackup/vnfs.c8
7 files changed, 13 insertions, 13 deletions
diff --git a/src/cmd/vbackup/config.c b/src/cmd/vbackup/config.c
index 0efeeee9..7d5e2d8c 100644
--- a/src/cmd/vbackup/config.c
+++ b/src/cmd/vbackup/config.c
@@ -117,22 +117,22 @@ readconfigfile(char *name, VtCache *vcache)
nf = tokenize(p, f, nelem(f));
if(nf != 3){
fprint(2, "%s:%d: syntax error\n", name, line);
- // ok = 0;
+ /* ok = 0; */
continue;
}
if(vtparsescore(f[1], &pref, score) < 0){
fprint(2, "%s:%d: bad score '%s'\n", name, line, f[1]);
- // ok = 0;
+ /* ok = 0; */
continue;
}
if(f[0][0] != '/'){
fprint(2, "%s:%d: unrooted path '%s'\n", name, line, f[0]);
- // ok = 0;
+ /* ok = 0; */
continue;
}
if(addpath(c, f[0], score, strtoul(f[2], 0, 0)) < 0){
fprint(2, "%s:%d: %s: %r\n", name, line, f[0]);
- // ok = 0;
+ /* ok = 0; */
continue;
}
}
diff --git a/src/cmd/vbackup/nfs3srv.h b/src/cmd/vbackup/nfs3srv.h
index 329db782..79d4464e 100644
--- a/src/cmd/vbackup/nfs3srv.h
+++ b/src/cmd/vbackup/nfs3srv.h
@@ -11,6 +11,6 @@ extern void mount3proc(void*);
enum
{
- MaxDataSize = 8192,
+ MaxDataSize = 8192
};
diff --git a/src/cmd/vbackup/queue.h b/src/cmd/vbackup/queue.h
index 053346ad..6b2317c3 100644
--- a/src/cmd/vbackup/queue.h
+++ b/src/cmd/vbackup/queue.h
@@ -1,6 +1,6 @@
enum
{
- MAXQ = 256,
+ MAXQ = 256
};
typedef struct Queue Queue;
diff --git a/src/cmd/vbackup/vbackup.c b/src/cmd/vbackup/vbackup.c
index b5d8251d..9e4c3b00 100644
--- a/src/cmd/vbackup/vbackup.c
+++ b/src/cmd/vbackup/vbackup.c
@@ -43,7 +43,7 @@
enum
{
- STACK = 32768,
+ STACK = 32768
};
typedef struct WriteReq WriteReq;
diff --git a/src/cmd/vbackup/vftp.c b/src/cmd/vbackup/vftp.c
index a5f1874d..d692afdc 100644
--- a/src/cmd/vbackup/vftp.c
+++ b/src/cmd/vbackup/vftp.c
@@ -42,7 +42,7 @@ Cmd cmdtab[] =
"pwd", cmdpwd, "pwd - print working directory",
"help", cmdhelp, "help - print usage summaries",
"block", cmdblock, "block path offset - print disk offset of path's byte offset",
- "disk", cmddisk, "disk offset count - dump disk contents",
+ "disk", cmddisk, "disk offset count - dump disk contents"
};
char*
diff --git a/src/cmd/vbackup/vmount0.c b/src/cmd/vbackup/vmount0.c
index 8d650586..93340c11 100644
--- a/src/cmd/vbackup/vmount0.c
+++ b/src/cmd/vbackup/vmount0.c
@@ -15,7 +15,7 @@ int handlelen = 20;
uchar handle[64] = {
/* SHA1("/") */
0x42, 0x09, 0x9B, 0x4A, 0xF0, 0x21, 0xE5, 0x3F, 0xD8, 0xFD,
- 0x4E, 0x05, 0x6C, 0x25, 0x68, 0xD7, 0xC2, 0xE3, 0xFF, 0xA8,
+ 0x4E, 0x05, 0x6C, 0x25, 0x68, 0xD7, 0xC2, 0xE3, 0xFF, 0xA8
};
void
diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c
index 7ec7d525..1de100cb 100644
--- a/src/cmd/vbackup/vnfs.c
+++ b/src/cmd/vbackup/vnfs.c
@@ -233,7 +233,7 @@ enum
RandSize = 16,
SessidSize = 8,
HeaderSize = RandSize+SessidSize,
- MaxHandleSize = Nfs3MaxHandleSize - HeaderSize,
+ MaxHandleSize = Nfs3MaxHandleSize - HeaderSize
};
AESstate aesstate;
@@ -342,7 +342,7 @@ enum
{
/* sizes used in handles; see nfs server below */
CnodeHandleSize = 8,
- FsysHandleOffset = CnodeHandleSize,
+ FsysHandleOffset = CnodeHandleSize
};
/*
@@ -588,7 +588,7 @@ parseipandmask(char *s, uchar *ip, uchar *mask)
if(*p != '/')
*--p = '/';
}
-//fprint(2, "parseipandmask %s => %I %I\n", s, ip, mask);
+/*fprint(2, "parseipandmask %s => %I %I\n", s, ip, mask); */
return 0;
}
@@ -863,7 +863,7 @@ timerthread(void *v)
{
for(;;){
recvp(timerchan);
- // refreshconfig();
+ /* refreshconfig(); */
}
}