gcc 4: "warning: declaration of 'dup' shadows a global declaration".
This commit is contained in:
parent
b65358b17c
commit
ff218617db
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: conf.c,v 1.86 2005/09/10 23:42:12 fw Exp $";
|
static char UNUSED id[] = "$Id: conf.c,v 1.87 2005/09/24 17:06:54 alex Exp $";
|
||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -76,10 +76,10 @@ static void Init_Server_Struct PARAMS(( CONF_SERVER *Server ));
|
||||||
static char *
|
static char *
|
||||||
strdup_warn(const char *str)
|
strdup_warn(const char *str)
|
||||||
{
|
{
|
||||||
char *dup = strdup(str);
|
char *ptr = strdup(str);
|
||||||
if (!dup)
|
if (!ptr)
|
||||||
Config_Error(LOG_ERR, "Could not allocate mem for string: %s", str);
|
Config_Error(LOG_ERR, "Could not allocate mem for string: %s", str);
|
||||||
return dup;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue