summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
committerobrien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
commit73c6870b18b8289171acd66d63bdd7ce8fb819b6 (patch)
treec6081460d17e593ae6ed744bc0f22972f9c9e461 /sbin/ifconfig
parentb132efc524eb66518b26bf553bd07698212a0838 (diff)
downloadFreeBSD-src-73c6870b18b8289171acd66d63bdd7ce8fb819b6.zip
FreeBSD-src-73c6870b18b8289171acd66d63bdd7ce8fb819b6.tar.gz
Remove 'register' keyword.
It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index e2d20ac..9f065f5 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -651,7 +651,7 @@ ifconfig(argc, argv, afp)
err(1, "socket");
while (argc > 0) {
- register const struct cmd *p;
+ const struct cmd *p;
for (p = cmds; p->c_name; p++)
if (strcmp(*argv, p->c_name) == 0)
@@ -1590,7 +1590,7 @@ in_getaddr(s, which)
const char *s;
int which;
{
- register struct sockaddr_in *sin = sintab[which];
+ struct sockaddr_in *sin = sintab[which];
struct hostent *hp;
struct netent *np;
@@ -1640,7 +1640,7 @@ in6_getaddr(s, which)
const char *s;
int which;
{
- register struct sockaddr_in6 *sin = sin6tab[which];
+ struct sockaddr_in6 *sin = sin6tab[which];
struct addrinfo hints, *res;
int error = -1;
@@ -1676,8 +1676,8 @@ in6_getprefix(plen, which)
const char *plen;
int which;
{
- register struct sockaddr_in6 *sin = sin6tab[which];
- register u_char *cp;
+ struct sockaddr_in6 *sin = sin6tab[which];
+ u_char *cp;
int len = atoi(plen);
if ((len < 0) || (len > 128))
@@ -1702,11 +1702,11 @@ in6_getprefix(plen, which)
void
printb(s, v, bits)
const char *s;
- register unsigned v;
- register const char *bits;
+ unsigned v;
+ const char *bits;
{
- register int i, any = 0;
- register char c;
+ int i, any = 0;
+ char c;
if (bits && *bits == 8)
printf("%s=%o", s, v);
@@ -1867,8 +1867,8 @@ prefix(val, size)
void *val;
int size;
{
- register u_char *name = (u_char *)val;
- register int byte, bit, plen = 0;
+ u_char *name = (u_char *)val;
+ int byte, bit, plen = 0;
for (byte = 0; byte < size; byte++, plen += 8)
if (name[byte] != 0xff)
OpenPOWER on IntegriCloud