summaryrefslogtreecommitdiffstats
path: root/lib/libutil/fparseln.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-29 17:50:34 +0000
committerpeter <peter@FreeBSD.org>1999-12-29 17:50:34 +0000
commite8ea19d78e855d6d9e26a5314197cd14fddd16b2 (patch)
tree103f234fd4413c3904bda7cf7dec0159bf43995f /lib/libutil/fparseln.c
parent506b57590bdf57e2248ebd3c429fe94984702ce2 (diff)
downloadFreeBSD-src-e8ea19d78e855d6d9e26a5314197cd14fddd16b2.zip
FreeBSD-src-e8ea19d78e855d6d9e26a5314197cd14fddd16b2.tar.gz
Connect fparseln(3) for mailwrapper(8)
Diffstat (limited to 'lib/libutil/fparseln.c')
-rw-r--r--lib/libutil/fparseln.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libutil/fparseln.c b/lib/libutil/fparseln.c
index cd4d3dd..f294bfe 100644
--- a/lib/libutil/fparseln.c
+++ b/lib/libutil/fparseln.c
@@ -1,4 +1,5 @@
/* $NetBSD: fparseln.c,v 1.9 1999/09/20 04:48:06 lukem Exp $ */
+/* $FreeBSD$ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -31,15 +32,16 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fparseln.c,v 1.9 1999/09/20 04:48:06 lukem Exp $");
+__RCSID("$FreeBSD$");
#endif
+#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <util.h>
+#include <libutil.h>
static int isescaped __P((const char *, const char *, int));
@@ -55,8 +57,10 @@ isescaped(sp, p, esc)
const char *cp;
size_t ne;
+#if 0
_DIAGASSERT(sp != NULL);
_DIAGASSERT(p != NULL);
+#endif
/* No escape character */
if (esc == '\0')
@@ -92,7 +96,9 @@ fparseln(fp, size, lineno, str, flags)
int cnt;
char esc, con, nl, com;
+#if 0
_DIAGASSERT(fp != NULL);
+#endif
len = 0;
buf = NULL;
OpenPOWER on IntegriCloud