Einige Dateien des Linux-Ports aufgeräumt

This commit is contained in:
Yamagi Burmeister 2009-03-04 15:36:32 +00:00
parent 7e1778b106
commit ef896a4ebd
2 changed files with 0 additions and 41 deletions

View file

@ -47,37 +47,6 @@ static int glob_match_after_star(char *pattern, char *text)
}
}
#if 0 /* Not used */
/* Return nonzero if PATTERN has any special globbing chars in it. */
static int glob_pattern_p(char *pattern)
{
register char *p = pattern;
register char c;
int open = 0;
while ((c = *p++) != '\0')
switch (c) {
case '?':
case '*':
return 1;
case '[': /* Only accept an open brace if there is a close */
open++; /* brace to match it. Bracket expressions must be */
continue; /* complete, according to Posix.2 */
case ']':
if (open)
return 1;
continue;
case '\\':
if (*p++ == '\0')
return 0;
}
return 0;
}
#endif
/* Match the pattern PATTERN against the string TEXT;
return 1 if it matches, 0 otherwise.

View file

@ -17,7 +17,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_wins.c
#include "../../common/qcommon.h"
@ -32,10 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <errno.h>
#include <arpa/inet.h>
#ifdef NeXT
#include <libc.h>
#endif
netadr_t net_local_adr;
#define LOOPBACK 0x7f000001
@ -90,7 +85,6 @@ void SockadrToNetadr (struct sockaddr_in *s, netadr_t *a)
a->type = NA_IP;
}
qboolean NET_CompareAdr (netadr_t a, netadr_t b)
{
if (a.ip[0] == b.ip[0] && a.ip[1] == b.ip[1] && a.ip[2] == b.ip[2] && a.ip[3] == b.ip[3] && a.port == b.port)
@ -382,12 +376,8 @@ void NET_SendPacket (netsrc_t sock, int length, void *data, netadr_t to)
}
}
//=============================================================================
/*
====================
NET_OpenIP