diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-12-24 09:29:17 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-12-24 09:29:17 +0000 |
commit | 70ee81ff6ba03e882c77fba9357f803c13982d31 (patch) | |
tree | 1634b1e1f6b1899192dae079bbf6eeccc9d4dbd5 /usr.sbin/ppp/chap.c | |
parent | f9925914f1371e9814b482f32c58a43266f413a9 (diff) | |
download | src-70ee81ff6ba03e882c77fba9357f803c13982d31.tar.gz src-70ee81ff6ba03e882c77fba9357f803c13982d31.zip |
Cosmetic (style):
sizeof(var) -> sizeof var
sizeof type -> sizeof(type)
Suggested by: J Wunsch <j@uriah.heep.sax.de>
Notes
Notes:
svn path=/head/; revision=31962
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r-- | usr.sbin/ppp/chap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c index 2668e4628196..28bd5e3b4492 100644 --- a/usr.sbin/ppp/chap.c +++ b/usr.sbin/ppp/chap.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.c,v 1.26 1997/11/22 03:37:25 brian Exp $ + * $Id: chap.c,v 1.27 1997/12/07 23:55:25 brian Exp $ * * TODO: */ @@ -230,10 +230,10 @@ RecvChapTalk(struct fsmheader *chp, struct mbuf *bp) VarBaseDevice); else { struct utmp ut; - memset(&ut, 0, sizeof(ut)); + memset(&ut, 0, sizeof ut); time(&ut.ut_time); - strncpy(ut.ut_name, name, sizeof(ut.ut_name)-1); - strncpy(ut.ut_line, VarBaseDevice, sizeof(ut.ut_line)-1); + strncpy(ut.ut_name, name, sizeof ut.ut_name - 1); + strncpy(ut.ut_line, VarBaseDevice, sizeof ut.ut_line - 1); if (logout(ut.ut_line)) logwtmp(ut.ut_line, "", ""); login(&ut); |