Deleted Added
full compact
readfile.c (97417) readfile.c (102411)
1/************************************************************************
2 Copyright 1988, 1991 by Carnegie Mellon University
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted, provided
8that the above copyright notice appear in all copies and that both that

--- 5 unchanged lines hidden (view full) ---

14CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
16IN NO EVENT SHALL CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
17DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
1/************************************************************************
2 Copyright 1988, 1991 by Carnegie Mellon University
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted, provided
8that the above copyright notice appear in all copies and that both that

--- 5 unchanged lines hidden (view full) ---

14CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
16IN NO EVENT SHALL CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
17DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
22 $FreeBSD: head/libexec/bootpd/readfile.c 97417 2002-05-28 18:36:43Z alfred $
22 $FreeBSD: head/libexec/bootpd/readfile.c 102411 2002-08-25 13:10:45Z charnier $
23
24************************************************************************/
25
26/*
27 * bootpd configuration file reading code.
28 *
29 * The routines in this file deal with reading, interpreting, and storing
30 * the information found in the bootpd configuration file (usually

--- 541 unchanged lines hidden (view full) ---

572 if (length < *bufsiz - 1) {
573 goto mainloop; /* And continue main loop */
574 } else {
575 goto done;
576 }
577 case '\\':
578 if ((c = fgetc(fp)) < 0) { /* Backslash */
579 goto done; /* EOF. . . .*/
23
24************************************************************************/
25
26/*
27 * bootpd configuration file reading code.
28 *
29 * The routines in this file deal with reading, interpreting, and storing
30 * the information found in the bootpd configuration file (usually

--- 541 unchanged lines hidden (view full) ---

572 if (length < *bufsiz - 1) {
573 goto mainloop; /* And continue main loop */
574 } else {
575 goto done;
576 }
577 case '\\':
578 if ((c = fgetc(fp)) < 0) { /* Backslash */
579 goto done; /* EOF. . . .*/
580 } /* else fall through */
580 }
581 /* FALLTHROUGH */
581 default:
582 *buffer++ = c; /* Other character, store it */
583 length++;
584 if (length >= *bufsiz - 1) {
585 goto done;
586 }
587 }
588 }

--- 14 unchanged lines hidden (view full) ---

603 c = fgetc(fp);
604 if (c < 0) {
605 goto done;
606 }
607 if (c == '\n') {
608 goto top; /* Backslash-newline continuation */
609 }
610 }
582 default:
583 *buffer++ = c; /* Other character, store it */
584 length++;
585 if (length >= *bufsiz - 1) {
586 goto done;
587 }
588 }
589 }

--- 14 unchanged lines hidden (view full) ---

604 c = fgetc(fp);
605 if (c < 0) {
606 goto done;
607 }
608 if (c == '\n') {
609 goto top; /* Backslash-newline continuation */
610 }
611 }
611 /* fall through if "other" character */
612 /* FALLTHROUGH if "other" character */
612 default:
613 *buffer++ = c; /* Store other characters */
614 length++;
615 if (length >= *bufsiz - 1) {
616 goto done;
617 }
618 }
619 goto mainloop; /* Keep going */

--- 1464 unchanged lines hidden ---
613 default:
614 *buffer++ = c; /* Store other characters */
615 length++;
616 if (length >= *bufsiz - 1) {
617 goto done;
618 }
619 }
620 goto mainloop; /* Keep going */

--- 1464 unchanged lines hidden ---