diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
commit | 3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch) | |
tree | 1a8b19c5db03f8c989fc8228811837b182feb7a3 /lib/libedit/history.c | |
parent | cc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff) |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'lib/libedit/history.c')
-rw-r--r-- | lib/libedit/history.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/libedit/history.c b/lib/libedit/history.c index d266b82c077..d6b9e745662 100644 --- a/lib/libedit/history.c +++ b/lib/libedit/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.6 2002/02/16 21:27:26 millert Exp $ */ +/* $OpenBSD: history.c,v 1.7 2002/02/19 19:39:37 millert Exp $ */ /* $NetBSD: history.c,v 1.5 1997/04/11 17:52:46 christos Exp $ */ /*- @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)history.c 8.1 (Berkeley) 6/4/93"; #else -static char rcsid[] = "$OpenBSD: history.c,v 1.6 2002/02/16 21:27:26 millert Exp $"; +static char rcsid[] = "$OpenBSD: history.c,v 1.7 2002/02/19 19:39:37 millert Exp $"; #endif #endif /* not lint && not SCCSID */ @@ -52,11 +52,7 @@ static char rcsid[] = "$OpenBSD: history.c,v 1.6 2002/02/16 21:27:26 millert Exp #include <string.h> #include <stdlib.h> -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif static const char hist_cookie[] = "_HiStOrY_V1_\n"; @@ -575,27 +571,14 @@ history_next_string(h, str) * User interface to history functions. */ const HistEvent * -#ifdef __STDC__ history(History *h, int fun, ...) -#else -history(va_alist) - va_dcl -#endif { va_list va; const HistEvent *ev = NULL; const char *str; static HistEvent sev = { 0, "" }; -#ifdef __STDC__ va_start(va, fun); -#else - History *h; - int fun; - va_start(va); - h = va_arg(va, History *); - fun = va_arg(va, int); -#endif switch (fun) { case H_ADD: |