Mercurial > hg > xemacs-beta
diff src/unexhp9k3.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
line wrap: on
line diff
--- a/src/unexhp9k3.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/unexhp9k3.c Mon Aug 13 11:20:41 2007 +0200 @@ -40,7 +40,6 @@ #include <sys/types.h> #include <string.h> #include <stdio.h> -#include <errno.h> #include <signal.h> #ifdef __hp9000s300 # include </usr/include/debug.h> @@ -72,7 +71,7 @@ /********************** Function Prototypes/Declarations ***********/ -static void unexec_error (const char *fmt, int use_errno, ...); +static void unexec_error (CONST char *fmt, int use_errno, ...); static int unexec_open (char *filename, int flag, int mode); static long unexec_seek (int fd, long position); static void unexec_read (int fd, long position, char *buf, int bytes); @@ -88,6 +87,7 @@ /* for reporting error messages from system calls */ extern int sys_nerr; +extern int errno; extern int _DYNAMIC; extern char **environ; @@ -96,9 +96,9 @@ /*******************************************************************/ static void -unexec_error (const char *fmt, int use_errno, ...) +unexec_error (CONST char *fmt, int use_errno, ...) { - const char *err_msg = SYS_ERR; + CONST char *err_msg = SYS_ERR; va_list args; fprintf (stderr, "unexec - ");