=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/checknr/Attic/checknr.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/checknr/Attic/checknr.c 2001/08/12 12:03:03 1.6 --- src/usr.bin/checknr/Attic/checknr.c 2001/11/19 19:02:13 1.7 *************** *** 1,4 **** ! /* $OpenBSD: checknr.c,v 1.6 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: checknr.c,v 1.4 1995/03/26 04:10:19 glass Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: checknr.c,v 1.7 2001/11/19 19:02:13 mpech Exp $ */ /* $NetBSD: checknr.c,v 1.4 1995/03/26 04:10:19 glass Exp $ */ /* *************** *** 44,50 **** #if 0 static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: checknr.c,v 1.6 2001/08/12 12:03:03 heko Exp $"; #endif #endif /* not lint */ --- 44,50 ---- #if 0 static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: checknr.c,v 1.7 2001/11/19 19:02:13 mpech Exp $"; #endif #endif /* not lint */ *************** *** 288,294 **** process(f) FILE *f; { ! register int i, n; char mac[5]; /* The current macro or nroff command */ int pl; --- 288,294 ---- process(f) FILE *f; { ! int i, n; char mac[5]; /* The current macro or nroff command */ int pl; *************** *** 414,420 **** char *line; char *mac; { ! register int i; /* * Check to see if it matches top of stack. --- 414,420 ---- char *line; char *mac; { ! int i; /* * Check to see if it matches top of stack. *************** *** 451,457 **** nomatch(mac) char *mac; { ! register int i, j; /* * Look for a match further down on stack --- 451,457 ---- nomatch(mac) char *mac; { ! int i, j; /* * Look for a match further down on stack *************** *** 565,571 **** addmac(mac) char *mac; { ! register char **src, **dest, **loc; if (binsrch(mac) >= 0){ /* it's OK to redefine something */ #ifdef DEBUG --- 565,571 ---- addmac(mac) char *mac; { ! char **src, **dest, **loc; if (binsrch(mac) >= 0){ /* it's OK to redefine something */ #ifdef DEBUG *************** *** 598,607 **** binsrch(mac) char *mac; { ! register char *p; /* pointer to current cmd in list */ ! register int d; /* difference if any */ ! register int mid; /* mid point in binary search */ ! register int top, bot; /* boundaries of bin search, inclusive */ top = ncmds-1; bot = 0; --- 598,607 ---- binsrch(mac) char *mac; { ! char *p; /* pointer to current cmd in list */ ! int d; /* difference if any */ ! int mid; /* mid point in binary search */ ! int top, bot; /* boundaries of bin search, inclusive */ top = ncmds-1; bot = 0;