diff options
author | brian <brian@FreeBSD.org> | 1997-12-24 09:29:17 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-24 09:29:17 +0000 |
commit | 14d342e696e1f58935e230c2b5bda26daa36cda0 (patch) | |
tree | 73e0e9a6ac1b2542326d644b2e9f7611a6f6a810 /usr.sbin/ppp/defs.c | |
parent | e2cdbfbbb2fff725814c29bd10d948ba15f8240e (diff) | |
download | FreeBSD-src-14d342e696e1f58935e230c2b5bda26daa36cda0.zip FreeBSD-src-14d342e696e1f58935e230c2b5bda26daa36cda0.tar.gz |
Cosmetic (style):
sizeof(var) -> sizeof var
sizeof type -> sizeof(type)
Suggested by: J Wunsch <j@uriah.heep.sax.de>
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r-- | usr.sbin/ppp/defs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c index 3bad88b..b23d7d9c 100644 --- a/usr.sbin/ppp/defs.c +++ b/usr.sbin/ppp/defs.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: defs.c,v 1.6 1997/12/21 12:11:05 brian Exp $ + * $Id: defs.c,v 1.7 1997/12/23 22:38:53 brian Exp $ */ #include <sys/param.h> @@ -56,7 +56,7 @@ void SetLabel(const char *label) { if (label) - strncpy(dstsystem, label, sizeof(dstsystem) - 1); + strncpy(dstsystem, label, sizeof dstsystem - 1); else *dstsystem = '\0'; } @@ -88,7 +88,7 @@ GetShortHost() { char *p; - if (gethostname(VarShortHost, sizeof(VarShortHost))) { + if (gethostname(VarShortHost, sizeof VarShortHost)) { LogPrintf(LogERROR, "GetShortHost: gethostbyname: %s\n", strerror(errno)); return 0; } |