Removed the HAVE_STRERROR directive and our replacement strerror() function for ...
authorArt Cancro <ajc@citadel.org>
Sat, 23 Apr 2016 15:30:19 +0000 (11:30 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 23 Apr 2016 15:30:19 +0000 (11:30 -0400)
citadel/support.c
citadel/utils/msgform.c
textclient/src/routines.c

index 16e10e6f8e38f25ca4ba5583bdd83393f0ccc61d..56941c36fb23abac8f365b3d20c4dc44ffd21588 100644 (file)
@@ -106,16 +106,3 @@ void mesg_locate(char *targ, size_t n, const char *searchfor,
 }
 
 
-#ifndef HAVE_STRERROR
-/*
- * replacement strerror() for systems that don't have it
- */
-char *strerror(int e)
-{
-       static char buf[32];
-
-       snprintf(buf,sizeof buf,"errno = %d",e);
-       return(buf);
-       }
-#endif
-
index 909e6b8ed2b62027dc197d2b91a59b40d7e731ad..03d94c2c7814fe192b51e85c9f89aad46b9c4a54 100644 (file)
@@ -26,18 +26,6 @@ int fpgetfield(FILE * fp, char *string);
 int fmout(int width, FILE * fp);
 
 
-#ifndef HAVE_STRERROR
-/*
- * replacement strerror() for systems that don't have it
- */
-char *strerror(int e)
-{
-       static char buf[32];
-
-       snprintf(buf, sizeof buf, "errno = %d", e);
-       return (buf);
-}
-#endif
 
 int main(int argc, char **argv)
 {
index 33e05c81a5cc0758bd0146c7e5f7ea4bdf942beb..3ec4a3c9860630f3ad05e5c97bf81e0c990cc57f 100644 (file)
@@ -433,20 +433,6 @@ void strproc(char *string)
 }
 
 
-#ifndef HAVE_STRERROR
-/*
- * replacement strerror() for systems that don't have it
- */
-char *strerror(int e)
-{
-       static char buf[128];
-
-       snprintf(buf, sizeof buf, "errno = %d",e);
-       return(buf);
-}
-#endif
-
-
 void progress(CtdlIPC* ipc, unsigned long curr, unsigned long cmax)
 {
        static char dots[] =