X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrdup.c;fp=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrdup.c;h=0000000000000000000000000000000000000000;hb=4abe4296f0eddbb2b6ff11dbbd27100156c85f87;hp=bf923e839264ee9324ce0269ee863d7a9952c16e;hpb=4b9bf9ae2701487191810e564aaa4672eb95130e;p=ppp.git diff --git a/pppd/plugins/radius/radiusclient/lib/strdup.c b/pppd/plugins/radius/radiusclient/lib/strdup.c deleted file mode 100644 index bf923e8..0000000 --- a/pppd/plugins/radius/radiusclient/lib/strdup.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * $Id: strdup.c,v 1.2 2002/02/27 15:51:20 dfs Exp $ - * - * Copyright (C) 1996 Lars Fenneberg and Christian Graefe - * - * This file is provided under the terms and conditions of the GNU general - * public license, version 2 or any later version, incorporated herein by - * reference. - * - */ - -#include "config.h" -#include "includes.h" - -/* - * Function: strdup - * - * Purpose: strdup replacement for systems which lack it - * - */ - -char *strdup(char *str) -{ - char *p; - - if (str == NULL) - return NULL; - - if ((p = (char *)malloc(strlen(str)+1)) == NULL) - return p; - - return strcpy(p, str); -}