Deleted Added
full compact
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 $
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 */
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 }
611 /* fall through 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 ---