diff options
Diffstat (limited to 'usr/src/head/regexp.h')
-rw-r--r-- | usr/src/head/regexp.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/usr/src/head/regexp.h b/usr/src/head/regexp.h index 05f6012f59..c8a58a1981 100644 --- a/usr/src/head/regexp.h +++ b/usr/src/head/regexp.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -24,7 +23,7 @@ /* - * Copyright 1997-2002 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -101,6 +100,11 @@ int seof; int i, cflg; int iflag; /* used for non-ascii characters in brackets */ +#ifdef __lint + /* make lint happy */ + c = nodelim; +#endif + lastep = NULL; if ((c = GETC()) == eof || c == '\n') { if (c == '\n') { @@ -117,7 +121,7 @@ int seof; circf++; else UNGETC(c); - while (1) { + for (;;) { if (ep >= endbuf) ERROR(50); c = GETC(); @@ -308,6 +312,7 @@ int seof; *ep++ = (char)c; } } + /*NOTREACHED*/ } #ifdef __STDC__ @@ -367,7 +372,7 @@ register char *lp, *ep; register char neg; size_t ct; - while (1) { + for (;;) { neg = 0; switch (*ep++) { @@ -571,6 +576,7 @@ register char *lp, *ep; } } + /*NOTREACHED*/ } static void |