summaryrefslogtreecommitdiff
path: root/pbm/libpbm1.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbm/libpbm1.c')
-rw-r--r--pbm/libpbm1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pbm/libpbm1.c b/pbm/libpbm1.c
index 5b8258a..95e8c95 100644
--- a/pbm/libpbm1.c
+++ b/pbm/libpbm1.c
@@ -1,6 +1,6 @@
/* libpbm1.c - pbm utility library part 1
**
-** Copyright (C) 1988 by Jef Poskanzer.
+** Copyright (C) 1988, 2004 by Jef Poskanzer.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
@@ -16,9 +16,9 @@
#include "libpbm.h"
#include <kpathsea/c-ctype.h>
-#include <varargs.h>
#if 0 /* karl */
+#include <varargs.h>
extern char *malloc ();
extern void free ();
extern void exit ();
@@ -216,9 +216,8 @@ void
pm_perror( reason )
char* reason;
{
- extern char* sys_errlist[];
extern int errno;
- char* e;
+ const char* e;
e = sys_errlist[errno];