Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bootp De-register.



details:   https://anonhg.NetBSD.org/src/rev/08dbd7c0e68d
branches:  trunk
changeset: 534038:08dbd7c0e68d
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Jul 14 00:30:02 2002 +0000

description:
De-register.

diffstat:

 usr.sbin/bootp/bootptest/bootptest.c   |   8 ++++----
 usr.sbin/bootp/bootptest/getether.c    |   8 ++++----
 usr.sbin/bootp/bootptest/print-bootp.c |  14 +++++++-------
 usr.sbin/bootp/common/hash.c           |  16 ++++++++--------
 usr.sbin/bootp/common/hwaddr.c         |   6 +++---
 usr.sbin/bootp/common/readfile.c       |  12 ++++++------
 6 files changed, 32 insertions(+), 32 deletions(-)

diffs (247 lines):

diff -r 504d23bfcdfb -r 08dbd7c0e68d usr.sbin/bootp/bootptest/bootptest.c
--- a/usr.sbin/bootp/bootptest/bootptest.c      Sat Jul 13 23:56:39 2002 +0000
+++ b/usr.sbin/bootp/bootptest/bootptest.c      Sun Jul 14 00:30:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootptest.c,v 1.8 2002/07/14 00:07:00 wiz Exp $        */
+/*     $NetBSD: bootptest.c,v 1.9 2002/07/14 00:30:02 wiz Exp $        */
 
 /*
  * bootptest.c - Test out a bootp server.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: bootptest.c,v 1.8 2002/07/14 00:07:00 wiz Exp $");
+__RCSID("$NetBSD: bootptest.c,v 1.9 2002/07/14 00:30:02 wiz Exp $");
 #endif
 
 char *usage = "bootptest [-h] server-name [vendor-data-template-file]";
@@ -453,9 +453,9 @@
  * Return true if truncated.
  */
 int
-printfn(register u_char *s, register u_char *ep)
+printfn(u_char *s, u_char *ep)
 {
-       register u_char c;
+       u_char c;
 
        putchar('"');
        while ((c = *s++) != 0) {
diff -r 504d23bfcdfb -r 08dbd7c0e68d usr.sbin/bootp/bootptest/getether.c
--- a/usr.sbin/bootp/bootptest/getether.c       Sat Jul 13 23:56:39 2002 +0000
+++ b/usr.sbin/bootp/bootptest/getether.c       Sun Jul 14 00:30:02 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: getether.c,v 1.5 2002/07/14 00:07:01 wiz Exp $ */
+/*     $NetBSD: getether.c,v 1.6 2002/07/14 00:30:02 wiz Exp $ */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: getether.c,v 1.5 2002/07/14 00:07:01 wiz Exp $");
+__RCSID("$NetBSD: getether.c,v 1.6 2002/07/14 00:30:02 wiz Exp $");
 #endif
 
 /*
@@ -125,10 +125,10 @@
 getether(char *ifname, char *eap)
 {
        int fd, rc = -1;
-       register int n;
+       int n;
        struct ifreq ibuf[16];
        struct ifconf ifc;
-       register struct ifreq *ifrp, *ifend;
+       struct ifreq *ifrp, *ifend;
 
        /* Fetch the interface configuration */
        fd = socket(AF_INET, SOCK_DGRAM, 0);
diff -r 504d23bfcdfb -r 08dbd7c0e68d usr.sbin/bootp/bootptest/print-bootp.c
--- a/usr.sbin/bootp/bootptest/print-bootp.c    Sat Jul 13 23:56:39 2002 +0000
+++ b/usr.sbin/bootp/bootptest/print-bootp.c    Sun Jul 14 00:30:02 2002 +0000
@@ -26,7 +26,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: print-bootp.c,v 1.6 2002/07/14 00:07:01 wiz Exp $");
+__RCSID("$NetBSD: print-bootp.c,v 1.7 2002/07/14 00:30:02 wiz Exp $");
 /* 93/10/10 <gwr%mc.com@localhost> New data-driven option print routine. */
 #endif
 
@@ -98,8 +98,8 @@
 
        /* Client's Hardware address */
        if (bp->bp_hlen) {
-               register struct ether_header *eh;
-               register char *e;
+               struct ether_header *eh;
+               char *e;
 
                TCHECK(bp->bp_chaddr[0], 6);
                eh = (struct ether_header *) packetp;
@@ -271,11 +271,11 @@
 #define        KNOWN_OPTIONS (sizeof(rfc1048_opts) / sizeof(rfc1048_opts[0]))
 
 static void
-rfc1048_print(register u_char *bp, int length)
+rfc1048_print(u_char *bp, int length)
 {
        u_char tag;
        u_char *ep;
-       register int len;
+       int len;
        u_int32 ul;
        u_short us;
        struct in_addr ia;
@@ -371,7 +371,7 @@
 }
 
 static void
-cmu_print(register u_char *bp, int length)
+cmu_print(u_char *bp, int length)
 {
        struct cmu_vend *v;
        u_char *ep;
@@ -420,7 +420,7 @@
  */
 
 static void
-other_print(register u_char *bp, int length)
+other_print(u_char *bp, int length)
 {
        u_char *ep;                                     /* end pointer */
        u_char *zp;                                     /* points one past last non-zero byte */
diff -r 504d23bfcdfb -r 08dbd7c0e68d usr.sbin/bootp/common/hash.c
--- a/usr.sbin/bootp/common/hash.c      Sat Jul 13 23:56:39 2002 +0000
+++ b/usr.sbin/bootp/common/hash.c      Sun Jul 14 00:30:02 2002 +0000
@@ -22,7 +22,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hash.c,v 1.5 2002/07/14 00:26:17 wiz Exp $");
+__RCSID("$NetBSD: hash.c,v 1.6 2002/07/14 00:30:02 wiz Exp $");
 #endif
 
 
@@ -81,8 +81,8 @@
 hash_tbl *
 hash_Init(unsigned int tablesize)
 {
-       register hash_tbl *hashtblptr;
-       register unsigned totalsize;
+       hash_tbl *hashtblptr;
+       unsigned totalsize;
 
        if (tablesize > 0) {
                totalsize = sizeof(hash_tbl)
@@ -165,9 +165,9 @@
  */
 
 unsigned
-hash_HashFunction(unsigned char *string, register unsigned int len)
+hash_HashFunction(unsigned char *string, unsigned int len)
 {
-       register unsigned accum;
+       unsigned accum;
 
        accum = 0;
        for (; len > 0; len--) {
@@ -188,7 +188,7 @@
 hash_Exists(hash_tbl *hashtable, unsigned int hashcode, hash_cmpfp compare,
            hash_datum *key)
 {
-       register hash_member *memberptr;
+       hash_member *memberptr;
 
        memberptr = (hashtable->table)[hashcode % (hashtable->size)];
        while (memberptr) {
@@ -327,8 +327,8 @@
 hash_datum *
 hash_NextEntry(hash_tbl *hashtable)
 {
-       register unsigned bucket;
-       register hash_member *memberptr;
+       unsigned bucket;
+       hash_member *memberptr;
 
        /*
         * First try to pick up where we left off.
diff -r 504d23bfcdfb -r 08dbd7c0e68d usr.sbin/bootp/common/hwaddr.c
--- a/usr.sbin/bootp/common/hwaddr.c    Sat Jul 13 23:56:39 2002 +0000
+++ b/usr.sbin/bootp/common/hwaddr.c    Sun Jul 14 00:30:02 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: hwaddr.c,v 1.6 2002/07/14 00:26:17 wiz Exp $   */
+/*     $NetBSD: hwaddr.c,v 1.7 2002/07/14 00:30:02 wiz Exp $   */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hwaddr.c,v 1.6 2002/07/14 00:26:17 wiz Exp $");
+__RCSID("$NetBSD: hwaddr.c,v 1.7 2002/07/14 00:30:02 wiz Exp $");
 #endif
 
 /*
@@ -231,7 +231,7 @@
 };
 
 void
-haddr_conv802(register u_char *addr_in, register u_char *addr_out, int len)
+haddr_conv802(u_char *addr_in, u_char *addr_out, int len)
 {
        u_char *lim;
 
diff -r 504d23bfcdfb -r 08dbd7c0e68d usr.sbin/bootp/common/readfile.c
--- a/usr.sbin/bootp/common/readfile.c  Sat Jul 13 23:56:39 2002 +0000
+++ b/usr.sbin/bootp/common/readfile.c  Sun Jul 14 00:30:02 2002 +0000
@@ -22,7 +22,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: readfile.c,v 1.9 2002/07/14 00:26:18 wiz Exp $");
+__RCSID("$NetBSD: readfile.c,v 1.10 2002/07/14 00:30:03 wiz Exp $");
 #endif
 
 
@@ -1292,7 +1292,7 @@
  */
 
 PRIVATE boolean
-goodname(register char *hostname)
+goodname(char *hostname)
 {
        do {
                if (!isalpha(*hostname++)) {    /* First character must be a letter */
@@ -1505,7 +1505,7 @@
 PRIVATE void
 adjust(char **s)
 {
-       register char *t;
+       char *t;
 
        t = *s;
        while (*t && (*t != ':')) {
@@ -1529,7 +1529,7 @@
 PRIVATE void
 eat_whitespace(char **s)
 {
-       register char *t;
+       char *t;
 
        t = *s;
        while (*t && isspace(*t)) {
@@ -1644,7 +1644,7 @@
 prs_inetaddr(char **src, u_int32 *result)
 {
        char tmpstr[MAXSTRINGLEN];
-       register u_int32 value;
+       u_int32 value;
        u_int32 parts[4], *pp;
        int n;
        char *s, *t;
@@ -1828,7 +1828,7 @@
 PRIVATE u_int32
 get_u_long(char **src)
 {
-       register u_int32 value, base;
+       u_int32 value, base;
        char c;
 
        /*



Home | Main Index | Thread Index | Old Index