diff options
Diffstat (limited to 'src/cmd/upas/common')
-rw-r--r-- | src/cmd/upas/common/appendfiletombox.c | 2 | ||||
-rw-r--r-- | src/cmd/upas/common/common.h | 2 | ||||
-rw-r--r-- | src/cmd/upas/common/libsys.c | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/upas/common/appendfiletombox.c b/src/cmd/upas/common/appendfiletombox.c index 98f51578..a718a836 100644 --- a/src/cmd/upas/common/appendfiletombox.c +++ b/src/cmd/upas/common/appendfiletombox.c @@ -1,7 +1,7 @@ #include "common.h" enum { - Buffersize = 64*1024, + Buffersize = 64*1024 }; typedef struct Inbuf Inbuf; diff --git a/src/cmd/upas/common/common.h b/src/cmd/upas/common/common.h index 2a6925d2..7a26dea1 100644 --- a/src/cmd/upas/common/common.h +++ b/src/cmd/upas/common/common.h @@ -19,7 +19,7 @@ enum Errlen= 128, Pathlen= 256, - RetryCode = 2, + RetryCode = 2 }; /* diff --git a/src/cmd/upas/common/libsys.c b/src/cmd/upas/common/libsys.c index a1c29517..ced00033 100644 --- a/src/cmd/upas/common/libsys.c +++ b/src/cmd/upas/common/libsys.c @@ -805,9 +805,9 @@ remoteaddr(int fd, char *dir) return raddr; } -// create a file and -// 1) ensure the modes we asked for -// 2) make gid == uid +/* create a file and */ +/* 1) ensure the modes we asked for */ +/* 2) make gid == uid */ static int docreate(char *file, int perm) { @@ -815,7 +815,7 @@ docreate(char *file, int perm) Dir ndir; Dir *d; - // create the mbox + /* create the mbox */ fd = create(file, OREAD, perm); if(fd < 0){ fprint(2, "couldn't create %s\n", file); @@ -835,7 +835,7 @@ docreate(char *file, int perm) return 0; } -// create a mailbox +/* create a mailbox */ int creatembox(char *user, char *folder) { @@ -852,14 +852,14 @@ creatembox(char *user, char *folder) mboxpath(buf, user, mailfile, 0); } - // don't destroy existing mailbox + /* don't destroy existing mailbox */ if(access(s_to_c(mailfile), 0) == 0){ fprint(2, "mailbox already exists\n"); return -1; } fprint(2, "creating new mbox: %s\n", s_to_c(mailfile)); - // make sure preceding levels exist + /* make sure preceding levels exist */ for(p = s_to_c(mailfile); p; p++) { if(*p == '/') /* skip leading or consecutive slashes */ continue; @@ -874,7 +874,7 @@ creatembox(char *user, char *folder) *p = '/'; } - // create the mbox + /* create the mbox */ if(docreate(s_to_c(mailfile), 0622|DMAPPEND|DMEXCL) < 0) return -1; |