=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/string.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/window/Attic/string.c 1998/04/26 22:49:06 1.4 --- src/usr.bin/window/Attic/string.c 2001/11/19 19:02:18 1.5 *************** *** 1,4 **** ! /* $OpenBSD: string.c,v 1.4 1998/04/26 22:49:06 millert Exp $ */ /* $NetBSD: string.c,v 1.5 1995/09/29 00:44:06 cgd Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: string.c,v 1.5 2001/11/19 19:02:18 mpech Exp $ */ /* $NetBSD: string.c,v 1.5 1995/09/29 00:44:06 cgd Exp $ */ /* *************** *** 41,47 **** #if 0 static char sccsid[] = "@(#)string.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: string.c,v 1.4 1998/04/26 22:49:06 millert Exp $"; #endif #endif /* not lint */ --- 41,47 ---- #if 0 static char sccsid[] = "@(#)string.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: string.c,v 1.5 2001/11/19 19:02:18 mpech Exp $"; #endif #endif /* not lint */ *************** *** 51,60 **** char * str_cpy(s) ! register char *s; { char *str; ! register char *p; str = p = str_alloc(strlen(s) + 1); if (p == 0) --- 51,60 ---- char * str_cpy(s) ! char *s; { char *str; ! char *p; str = p = str_alloc(strlen(s) + 1); if (p == 0) *************** *** 66,77 **** char * str_ncpy(s, n) ! register char *s; ! register n; { int l = strlen(s); char *str; ! register char *p; if (n > l) n = l; --- 66,77 ---- char * str_ncpy(s, n) ! char *s; ! int n; { int l = strlen(s); char *str; ! char *p; if (n > l) n = l; *************** *** 99,105 **** char *s1, *s2; { char *str; ! register char *p, *q; str = p = str_alloc(strlen(s1) + strlen(s2) + 1); if (p == 0) --- 99,105 ---- char *s1, *s2; { char *str; ! char *p, *q; str = p = str_alloc(strlen(s1) + strlen(s2) + 1); if (p == 0) *************** *** 116,123 **** * s can be a prefix of p with at least min characters. */ str_match(s, p, min) ! register char *s, *p; ! register min; { for (; *s && *p && *s == *p; s++, p++, min--) ; --- 116,123 ---- * s can be a prefix of p with at least min characters. */ str_match(s, p, min) ! char *s, *p; ! int min; { for (; *s && *p && *s == *p; s++, p++, min--) ; *************** *** 129,135 **** str_alloc(l) int l; { ! register struct string *s; s = (struct string *) malloc(l + str_offset); if (s == 0) --- 129,135 ---- str_alloc(l) int l; { ! struct string *s; s = (struct string *) malloc(l + str_offset); if (s == 0) *************** *** 146,152 **** str_free(str) char *str; { ! register struct string *s; for (s = str_head.s_forw; s != &str_head && s->s_data != str; s = s->s_forw) --- 146,152 ---- str_free(str) char *str; { ! struct string *s; for (s = str_head.s_forw; s != &str_head && s->s_data != str; s = s->s_forw)