aboutsummaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:09:58 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:09:58 +0300
commitcae8bc6ced84c12590e3554a06a952283735363a (patch)
treeca4f38bfcb1312bfb62fc693564d68f3e9b3e973 /msg.c
parentdbd583bd2b8a6dd40c622875a4e197360cb5aba7 (diff)
downloadegawk-cae8bc6ced84c12590e3554a06a952283735363a.tar.gz
egawk-cae8bc6ced84c12590e3554a06a952283735363a.tar.bz2
egawk-cae8bc6ced84c12590e3554a06a952283735363a.zip
Move to 2.14.
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/msg.c b/msg.c
index 629470ee..b60fe9d1 100644
--- a/msg.c
+++ b/msg.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991, 1992 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Progamming Language.
@@ -29,11 +29,11 @@ int sourceline = 0;
char *source = NULL;
/* VARARGS2 */
-static void
-err(s, msg, argp)
+void
+err(s, emsg, argp)
char *s;
-char *msg;
-va_list *argp;
+char *emsg;
+va_list argp;
{
char *file;
@@ -54,7 +54,7 @@ va_list *argp;
(void) fprintf(stderr, "FNR=%d) ", FNR);
}
(void) fprintf(stderr, s);
- vfprintf(stderr, msg, *argp);
+ vfprintf(stderr, emsg, argp);
(void) fprintf(stderr, "\n");
(void) fflush(stderr);
}
@@ -69,7 +69,7 @@ va_dcl
va_start(args);
mesg = va_arg(args, char *);
- err("", mesg, &args);
+ err("", mesg, args);
va_end(args);
}
@@ -83,7 +83,7 @@ va_dcl
va_start(args);
mesg = va_arg(args, char *);
- err("warning: ", mesg, &args);
+ err("warning: ", mesg, args);
va_end(args);
}
@@ -97,7 +97,7 @@ va_dcl
va_start(args);
mesg = va_arg(args, char *);
- err("fatal: ", mesg, &args);
+ err("fatal: ", mesg, args);
va_end(args);
#ifdef DEBUG
abort();