mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
comment out never used
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include <netdb.h>
|
||||
#include <linux/route.h>
|
||||
|
||||
#if 0
|
||||
//never used
|
||||
static void scanip( char *str, unsigned char *to )
|
||||
{
|
||||
int val;
|
||||
@@ -80,7 +82,7 @@ abbruch:
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
#endif
|
||||
void netGetIP( char *dev, char *ip, char *mask, char *brdcast )
|
||||
{
|
||||
int fd;
|
||||
@@ -114,7 +116,8 @@ void netGetIP( char *dev, char *ip, char *mask, char *brdcast )
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
//never used
|
||||
void netSetDefaultRoute( char *gw )
|
||||
{
|
||||
struct rtentry re;
|
||||
@@ -149,7 +152,7 @@ void netSetDefaultRoute( char *gw )
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
void netGetDefaultRoute( char *ip )
|
||||
{
|
||||
FILE *fp;
|
||||
@@ -179,7 +182,8 @@ static char dombuf[256];
|
||||
static char hostbuf[256];
|
||||
static char domis=0;
|
||||
static char hostis=0;
|
||||
|
||||
#if 0
|
||||
//never used
|
||||
char *netGetDomainname( void )
|
||||
{
|
||||
if (!domis)
|
||||
@@ -194,7 +198,7 @@ void netSetDomainname( char *dom )
|
||||
domis=1;
|
||||
setdomainname(dombuf,strlen(dombuf)+1);
|
||||
}
|
||||
|
||||
#endif
|
||||
char *netGetHostname( void )
|
||||
{
|
||||
if (!hostis)
|
||||
|
Reference in New Issue
Block a user