mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
error: declaration of 'index' shadows a global declaration
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@109 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: e57d1f7ed8
Author: mws <mws@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-22 (Tue, 22 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -33,7 +33,7 @@ static void scanip( char *str, unsigned char *to )
|
||||
sp++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int netSetIP( char *dev, char *ip, char *mask, char *brdcast )
|
||||
{
|
||||
int fd;
|
||||
@@ -234,7 +234,7 @@ void netGetNameserver( char *ip )
|
||||
{
|
||||
FILE *fp;
|
||||
char zeile[256];
|
||||
char *index;
|
||||
char *indexLocal;
|
||||
unsigned zaehler;
|
||||
|
||||
*ip = 0;
|
||||
@@ -246,12 +246,12 @@ void netGetNameserver( char *ip )
|
||||
{
|
||||
if (!strncasecmp(zeile,"nameserver",10))
|
||||
{
|
||||
index = zeile + 10;
|
||||
while ( (*index == ' ') || (*index == '\t') )
|
||||
index++;
|
||||
indexLocal = zeile + 10;
|
||||
while ( (*indexLocal == ' ') || (*indexLocal == '\t') )
|
||||
indexLocal++;
|
||||
zaehler = 0;
|
||||
while ( (zaehler < 15) && ( ((*index >= '0') && (*index <= '9')) || (*index == '.')))
|
||||
ip[zaehler++] = *(index++);
|
||||
while ( (zaehler < 15) && ( ((*indexLocal >= '0') && (*indexLocal <= '9')) || (*indexLocal == '.')))
|
||||
ip[zaehler++] = *(indexLocal++);
|
||||
ip[zaehler] = 0;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user