]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
DupNString removed - we don't need it now
authorValery Yatsko <redacted>
Wed, 2 Apr 2008 02:00:24 +0000 (06:00 +0400)
committerValery Yatsko <redacted>
Wed, 2 Apr 2008 02:00:24 +0000 (06:00 +0400)
include/irc_string.h

index 2aa7f41d076e32b7da8e4c4421ea796ac0804fa8..ba1d0a51f5988703390b91eceaf8a061ebf6a043 100644 (file)
@@ -99,12 +99,6 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
 size_t strlcat(char *dst, const char *src, size_t siz);
 #endif
 
-#ifdef HAVE_STRNDUP
-#define DupNString(x, y, len) do { x = strndup(y, len); if(x == NULL) outofmemory(); } while (0)
-#else
-#define DupNString(x, y, len) do { x = malloc(len+1); if(x == NULL) outofmemory(); strlcpy(x, y, len+1); } while(0)
-#endif
-
 /*
  * clean_string - cleanup control and high ascii characters
  * -Dianora