mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +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++;
|
sp++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int netSetIP( char *dev, char *ip, char *mask, char *brdcast )
|
int netSetIP( char *dev, char *ip, char *mask, char *brdcast )
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
@@ -234,7 +234,7 @@ void netGetNameserver( char *ip )
|
|||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
char zeile[256];
|
char zeile[256];
|
||||||
char *index;
|
char *indexLocal;
|
||||||
unsigned zaehler;
|
unsigned zaehler;
|
||||||
|
|
||||||
*ip = 0;
|
*ip = 0;
|
||||||
@@ -246,12 +246,12 @@ void netGetNameserver( char *ip )
|
|||||||
{
|
{
|
||||||
if (!strncasecmp(zeile,"nameserver",10))
|
if (!strncasecmp(zeile,"nameserver",10))
|
||||||
{
|
{
|
||||||
index = zeile + 10;
|
indexLocal = zeile + 10;
|
||||||
while ( (*index == ' ') || (*index == '\t') )
|
while ( (*indexLocal == ' ') || (*indexLocal == '\t') )
|
||||||
index++;
|
indexLocal++;
|
||||||
zaehler = 0;
|
zaehler = 0;
|
||||||
while ( (zaehler < 15) && ( ((*index >= '0') && (*index <= '9')) || (*index == '.')))
|
while ( (zaehler < 15) && ( ((*indexLocal >= '0') && (*indexLocal <= '9')) || (*indexLocal == '.')))
|
||||||
ip[zaehler++] = *(index++);
|
ip[zaehler++] = *(indexLocal++);
|
||||||
ip[zaehler] = 0;
|
ip[zaehler] = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user