Skip to content

Commit

Permalink
minor changes to pacify gcc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ColumPaget committed Apr 4, 2016
1 parent 609a16c commit dd59b51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ return((char *) inet_ntoa(*(struct in_addr *) *hostdata->h_addr_list));
//an mmap: prefix, opens a shared mem-map
FILE *OpenFileOrMMap(const char *Path)
{
char *ptr, *map=NULL;
char *map=NULL;
const char *ptr;
int fd;
struct stat Stat;
FILE *f=NULL;
Expand Down Expand Up @@ -424,7 +425,8 @@ return(result);

int CheckIPLists(const char *FileList, const char *Rhost, const char *IP, const char *MAC, const char *Region, char **MatchingLists)
{
char *Path=NULL, *ptr;
char *Path=NULL;
const char *ptr;
int result=FALSE;

ptr=GetTok(FileList,",",&Path);
Expand All @@ -448,7 +450,8 @@ return(result);

int CheckDNSList(const char *Domains, const char *IP, char **MatchingLists)
{
char *Tempstr=NULL, *Reversed=NULL, *Token=NULL, *ptr;
char *Tempstr=NULL, *Reversed=NULL, *Token=NULL;
const char *ptr;
struct hostent *hinfo;
char *Quads[4];
int i=0, len, result=FALSE;
Expand Down

0 comments on commit dd59b51

Please sign in to comment.