Deleted Added
full compact
ng_parse.c (125028) ng_parse.c (128729)
1
2/*
3 * ng_parse.c
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@freebsd.org>
38 *
39 * $Whistle: ng_parse.c,v 1.3 1999/11/29 01:43:48 archie Exp $
1
2/*
3 * ng_parse.c
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@freebsd.org>
38 *
39 * $Whistle: ng_parse.c,v 1.3 1999/11/29 01:43:48 archie Exp $
40 * $FreeBSD: head/sys/netgraph/ng_parse.c 125028 2004-01-26 14:05:31Z harti $
40 * $FreeBSD: head/sys/netgraph/ng_parse.c 128729 2004-04-29 01:37:11Z jdp $
41 */
42
43#include <sys/types.h>
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/errno.h>
48#include <sys/malloc.h>

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

1757 *--v = (char)x;
1758 break;
1759 default:
1760 continue;
1761 }
1762 strcpy(p, v);
1763 }
1764 }
41 */
42
43#include <sys/types.h>
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/errno.h>
48#include <sys/malloc.h>

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

1757 *--v = (char)x;
1758 break;
1759 default:
1760 continue;
1761 }
1762 strcpy(p, v);
1763 }
1764 }
1765 FREE(cbuf, M_NETGRAPH_PARSE);
1765 return (NULL); /* no closing quote */
1766}
1767
1768/*
1769 * Encode a string so it can be safely put in double quotes.
1770 * Caller must free the result. Exactly "slen" characters
1771 * are encoded.
1772 */

--- 89 unchanged lines hidden ---
1766 return (NULL); /* no closing quote */
1767}
1768
1769/*
1770 * Encode a string so it can be safely put in double quotes.
1771 * Caller must free the result. Exactly "slen" characters
1772 * are encoded.
1773 */

--- 89 unchanged lines hidden ---