diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-11-02 11:38:05 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-11-02 11:38:05 +0000 |
commit | 0282b52217295190cf884000cff90d178bba5eb7 (patch) | |
tree | 18b901ed9f37c09feea7794cfdb79614fbd63681 /sbin | |
parent | fa1ff973e94def9770e1530371d42a1c5f5cf9be (diff) |
KNF - reyk, look at this diff
not that ifconfig is our prime example for nicely KNF'd and readable code tho
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 89b2b7ea52d..df9f93bc98a 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.116 2004/11/02 02:33:26 deraadt Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.117 2004/11/02 11:38:04 henning Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -77,7 +77,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; #else -static const char rcsid[] = "$OpenBSD: ifconfig.c,v 1.116 2004/11/02 02:33:26 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ifconfig.c,v 1.117 2004/11/02 11:38:04 henning Exp $"; #endif #endif /* not lint */ @@ -164,7 +164,7 @@ void setifmetric(const char *, int); void setifmtu(const char *, int); void setifnwid(const char *, int); void setifnwkey(const char *, int); -void setifchan(const char *, int); +void setifchan(const char *, int); void setifpowersave(const char *, int); void setifpowersavesleep(const char *, int); void setifnetmask(const char *, int); @@ -184,7 +184,7 @@ void setia6eui64(const char *, int); void checkatrange(struct sockaddr_at *); void setmedia(const char *, int); void setmediaopt(const char *, int); -void setmediamode(const char *, int); +void setmediamode(const char *, int); void clone_create(const char *, int); void clone_destroy(const char *, int); void unsetmediaopt(const char *, int); @@ -228,7 +228,7 @@ int actions; /* Actions performed */ #define A_MEDIAOPTCLR 0x0004 /* -mediaopt command */ #define A_MEDIAOPT (A_MEDIAOPTSET|A_MEDIAOPTCLR) #define A_MEDIAINST 0x0008 /* instance or inst command */ -#define A_MEDIAMODE 0x0010 /* mode command */ +#define A_MEDIAMODE 0x0010 /* mode command */ #define NEXTARG 0xffffff #define NEXTARG2 0xfffffe @@ -1272,8 +1272,8 @@ setifchan(const char *val, int d) } } - (void)strlcpy(channel.i_name, name, sizeof(channel.i_name)); - channel.i_channel = (u_int16_t) chan; + strlcpy(channel.i_name, name, sizeof(channel.i_name)); + channel.i_channel = (u_int16_t)chan; if (ioctl(s, SIOCS80211CHANNEL, (caddr_t)&channel) == -1) warn("SIOCS80211CHANNEL"); } |