diff options
Diffstat (limited to 'lib/libc/gen/getcap.c')
-rw-r--r-- | lib/libc/gen/getcap.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c index 4500062..ad5f6b2 100644 --- a/lib/libc/gen/getcap.c +++ b/lib/libc/gen/getcap.c @@ -32,13 +32,13 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; #endif /* LIBC_SCCS and not lint */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "namespace.h" #include <sys/types.h> @@ -69,9 +69,9 @@ static size_t topreclen; /* toprec length */ static char *toprec; /* Additional record specified by cgetset() */ static int gottoprec; /* Flag indicating retrieval of toprecord */ -static int cdbget __P((DB *, char **, char *)); -static int getent __P((char **, u_int *, char **, int, char *, int, char *)); -static int nfcmp __P((char *, char *)); +static int cdbget(DB *, char **, char *); +static int getent(char **, u_int *, char **, int, char *, int, char *); +static int nfcmp(char *, char *); /* * Cgetset() allows the addition of a user specified buffer to be added @@ -116,7 +116,7 @@ cgetcap(buf, cap, type) char *buf, *cap; int type; { - register char *bp, *cp; + char *bp, *cp; bp = buf; for (;;) { @@ -197,7 +197,7 @@ getent(cap, len, db_array, fd, name, depth, nfield) int fd, depth; { DB *capdbp; - register char *r_end, *rp, **db_p; + char *r_end, *rp, **db_p; int myfd, eof, foundit, retval, clen; char *record, *cbuf; int tc_not_resolved; @@ -282,8 +282,8 @@ getent(cap, len, db_array, fd, name, depth, nfield) */ { char buf[BUFSIZ]; - register char *b_end, *bp; - register int c; + char *b_end, *bp; + int c; /* * Loop invariants: @@ -395,8 +395,8 @@ getent(cap, len, db_array, fd, name, depth, nfield) * references in it ... */ tc_exp: { - register char *newicap, *s; - register int newilen; + char *newicap, *s; + int newilen; u_int ilen; int diff, iret, tclen; char *icap, *scan, *tc, *tcstart, *tcend; @@ -576,7 +576,7 @@ int cgetmatch(buf, name) char *buf, *name; { - register char *np, *bp; + char *np, *bp; /* * Start search at beginning of record. @@ -646,7 +646,7 @@ cgetclose() */ int cgetnext(bp, db_array) - register char **bp; + char **bp; char **db_array; { size_t len; @@ -789,8 +789,8 @@ cgetstr(buf, cap, str) char *buf, *cap; char **str; { - register u_int m_room; - register char *bp, *mp; + u_int m_room; + char *bp, *mp; int len; char *mem; @@ -833,7 +833,7 @@ cgetstr(buf, cap, str) if (*bp == ':' || *bp == '\0') break; /* drop unfinished escape */ if ('0' <= *bp && *bp <= '7') { - register int n, i; + int n, i; n = 0; i = 3; /* maximum of three octal digits */ @@ -917,8 +917,8 @@ int cgetustr(buf, cap, str) char *buf, *cap, **str; { - register u_int m_room; - register char *bp, *mp; + u_int m_room; + char *bp, *mp; int len; char *mem; @@ -987,9 +987,9 @@ cgetnum(buf, cap, num) char *buf, *cap; long *num; { - register long n; - register int base, digit; - register char *bp; + long n; + int base, digit; + char *bp; /* * Find numeric capability cap |