diff options
Diffstat (limited to 'src/LYCgi.c')
-rw-r--r-- | src/LYCgi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/LYCgi.c b/src/LYCgi.c index b2864c68..aaf69043 100644 --- a/src/LYCgi.c +++ b/src/LYCgi.c @@ -42,6 +42,7 @@ #include <GridText.h> #include <LYCgi.h> #include <LYSignal.h> +#include <LYStrings.h> #include <LYLocal.h> #include <LYLeaks.h> @@ -70,17 +71,6 @@ PRIVATE void add_environment_value PARAMS((char *env_value)); #define PERROR(msg) CTRACE(tfp, "LYNXCGI: %s: %s\n", msg, LYStrerror(errno)) -#ifdef HAVE_STRERROR -#define LYStrerror(n) strerror(n) -#else -PRIVATE char *LYStrerror ARGS1(int, code) -{ - static char temp[80]; - sprintf(temp, "System errno is %d.\r\n", code); - return temp; -} -#endif /* HAVE_STRERROR */ - PRIVATE void free_alloced_lynxcgi NOARGS { void *ptr; |