diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/auth/factotum/chap.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-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/auth/factotum/chap.c')
-rw-r--r-- | src/cmd/auth/factotum/chap.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/cmd/auth/factotum/chap.c b/src/cmd/auth/factotum/chap.c index 2b258902..b27f64a7 100644 --- a/src/cmd/auth/factotum/chap.c +++ b/src/cmd/auth/factotum/chap.c @@ -33,7 +33,7 @@ enum { MShashlen = 16, MSchallen = 8, - MSresplen = 24, + MSresplen = 24 }; static int @@ -315,7 +315,7 @@ out: keyclose(s.k); free(user); free(resp); -// xioclose(s.asfd); +/* xioclose(s.asfd); */ return ret; } @@ -411,16 +411,17 @@ chaproles[] = }; Proto chap = { -.name= "chap", -.roles= chaproles, -.checkkey= chapcheck, -.keyprompt= "user? !password?", + "chap", + chaproles, + "user? !password?", + chapcheck }; Proto mschap = { -.name= "mschap", -.roles= chaproles, -.checkkey= chapcheck, -.keyprompt= "user? !password?", + "mschap", + chaproles, + "user? !password?", + chapcheck }; + |