aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/import.c
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/import.c
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/import.c')
-rw-r--r--src/cmd/import.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/import.c b/src/cmd/import.c
index 428cf90f..88ee7c16 100644
--- a/src/cmd/import.c
+++ b/src/cmd/import.c
@@ -26,7 +26,7 @@ char *prog = "import";
enum
{
- Stack= 32*1024,
+ Stack= 32*1024
};
void
@@ -68,13 +68,13 @@ threadmain(int argc, char *argv[])
case 'f':
dofork = 0;
break;
- case 'n': // name of remote namespace
+ case 'n': /* name of remote namespace */
ns = EARGF(usage());
break;
case 'p':
prog = EARGF(usage());
break;
- case 's': // name of service
+ case 's': /* name of service */
srv = EARGF(usage());
break;
case 'R':
@@ -94,7 +94,7 @@ threadmain(int argc, char *argv[])
fmtinstall('F', fcallfmt);
}
- // is this the remote side?
+ /* is this the remote side? */
if(rem){
if(srv == nil)
fatal("-R requires -s");
@@ -118,11 +118,11 @@ runproc(void *arg)
{
USED(arg);
- // start a loal service and connect to remote service
+ /* start a loal service and connect to remote service */
srvfd = post(srv);
netfd = call(addr, ns, srv);
- // threads to shuffle messages each way
+ /* threads to shuffle messages each way */
srv_to_net[0] = srvfd;
srv_to_net[1] = netfd;
proccreate(shuffle, srv_to_net, Stack);
@@ -196,8 +196,8 @@ call(char *rsys, char *ns, char *srv)
}
close(p[1]);
- // ignore crap that might come out of the .profile
- // keep reading till we have an "OK"
+ /* ignore crap that might come out of the .profile */
+ /* keep reading till we have an "OK" */
if(read(p[0], &buf[0], 1) != 1)
fatal("EOF");
for(;;){
@@ -242,7 +242,7 @@ shuffle(void *arg)
t = emalloc(sizeof(Fcall));
if(tbuf == nil)
tbuf = emalloc(BLEN+1);
- memmove(tbuf, buf, n); // because convM2S is destructive
+ memmove(tbuf, buf, n); /* because convM2S is destructive */
if(convM2S((uchar*)tbuf, n, t) != n)
fprint(dfd, "%d->%d convert error in convM2S", fd[0], fd[1]);
else