ipifc.c: add explicit return type
[rsc] --rw-rw-r-- M 1276246 glenda sys 34259 Mar 27 07:41 sys/src/9/ip/ipifc.c
/n/sourcesdump/2006/0327/plan9/sys/src/9/ip/ipifc.c:831,836 -
/n/sourcesdump/2006/0328/plan9/sys/src/9/ip/ipifc.c:831,837
return "unsupported ctl";
}
+ int
ipifcstats(Proto *ipifc, char *buf, int len)
{
return ipstats(ipifc->f, buf, len);
cc: add comment about -S
[rsc] --rw-rw-r-- M 1276246 glenda sys 24200 Mar 27 07:41 sys/src/cmd/cc/lex.c
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/cc/lex.c:24,29 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/cc/lex.c:24,30
* -p use standard cpp ANSI preprocessor (not on windows)
* -r print registerization
* -s print structure offsets (with -a or -aa)
+ * -S print assembly
* -t print type trees
* -V enable void* conversion warnings
* -v verbose printing
pbs, pbslba: print PBS1... PBS2... to distinguish them
[rsc] --rwxrwxr-x M 1276246 glenda sys 495 Mar 27 08:16 386/pbs
[rsc] --rwxrwxr-x M 1276246 glenda sys 508 Mar 27 08:16 386/pbslba
[rsc] --rw-rw-r-- M 1276246 glenda sys 8291 Mar 27 08:16 sys/src/boot/pc/pbs.s
/n/sourcesdump/2006/0327/plan9/sys/src/boot/pc/pbs.s:367,372 -
/n/sourcesdump/2006/0328/plan9/sys/src/boot/pc/pbs.s:367,372
/* "PBS..." */
TEXT confidence(SB), $0
- BYTE $'P'; BYTE $'B'; BYTE $'S'; BYTE $'.';
- BYTE $'.'; BYTE $'.';
+ BYTE $'P'; BYTE $'B'; BYTE $'S'; BYTE $'1';
+ BYTE $'.'; BYTE $'.'; BYTE $'.';
BYTE $'\z';
[rsc] --rw-rw-r-- M 1276246 glenda sys 8158 Mar 27 08:16 sys/src/boot/pc/pbslba.s
/n/sourcesdump/2006/0327/plan9/sys/src/boot/pc/pbslba.s:357,362 -
/n/sourcesdump/2006/0328/plan9/sys/src/boot/pc/pbslba.s:357,362
/* "PBS..." */
TEXT confidence(SB), $0
- BYTE $'P'; BYTE $'B'; BYTE $'S'; BYTE $'.';
- BYTE $'.'; BYTE $'.';
+ BYTE $'P'; BYTE $'B'; BYTE $'S'; BYTE $'2';
+ BYTE $'.'; BYTE $'.'; BYTE $'.';
BYTE $'\z';
remove non-idiomatic while(1) loops in native programs
[rsc] --rw-rw-r-- M 1276246 glenda sys 4063 Mar 27 08:25 sys/src/cmd/auth/secstore/aescbc.c
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/auth/secstore/aescbc.c:100,106 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/auth/secstore/aescbc.c:100,106
aesCBCencrypt(buf+AESbsize, AESbsize, &aes); /* use second AESbsize bytes as initial plaintext */
safewrite(buf, 2*AESbsize);
dstate = hmac_sha1(buf+AESbsize, AESbsize, key2, MD5dlen, 0, 0);
- while(1){
+ for(;;){
n = Bread(&bin, buf, BUF);
if(n < 0)
sysfatal("read error");
[rsc] --rw-rw-r-- M 1276246 glenda sys 12678 Mar 27 08:24 sys/src/cmd/auth/secstore/secstore.c
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/auth/secstore/secstore.c:406,412 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/auth/secstore/secstore.c:406,412
}
strecpy(c->pass, c->pass+sizeof c->pass, s);
}
- while(1){
+ for(;;){
if(verbose)
fprint(2, "dialing %s\n", dest);
if((fd = dial(dest, nil, nil, nil)) < 0){
[rsc] --rw-rw-r-- M 1276246 glenda sys 5136 Mar 27 08:24 sys/src/cmd/auth/secstore/secuser.c
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/auth/secstore/secuser.c:225,231 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/auth/secstore/secuser.c:225,231
{
int n;
- while(1){
+ for(;;){
n = read(0, buf, blen);
if(n<=0)
exits("read error");
[rsc] --rw-rw-r-- M 1276246 glenda sys 6312 Mar 27 08:23 sys/src/cmd/ip/httpd/hints.c
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/ip/httpd/hints.c:51,57 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/ip/httpd/hints.c:51,57
hash = 1 + url%(URLmax-1);
j = urlhash[hash];
- while(1){
+ for(;;){
if(j==0)
return -hash;
if(url==urltab[j])
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/ip/httpd/hints.c:185,191 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/ip/httpd/hints.c:185,191
}
arena = (Hint*)ezalloc((filelen/3)*sizeof(Hint));
oldarena = arena;
- while(1){
+ for(;;){
i = Bread(b,buf,3);
if(i<3)
break;
[rsc] --rw-rw-r-- M 1276246 glenda sys 59909 Mar 27 08:23 sys/src/cmd/ip/ppp/ppp.c
/n/sourcesdump/2006/0327/plan9/sys/src/cmd/ip/ppp/ppp.c:2554,2560 -
/n/sourcesdump/2006/0328/plan9/sys/src/cmd/ip/ppp/ppp.c:2554,2560
p = buf;
lineno = 0;
- while (1) {
+ for(;;) {
char *_args[3];
if ((s = strchr(p, '\n')) == nil)
|