diff --git a/src/platforms/posix/glob.c b/src/platforms/posix/glob.c index 1953c429..0f3f27b8 100644 --- a/src/platforms/posix/glob.c +++ b/src/platforms/posix/glob.c @@ -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. diff --git a/src/platforms/posix/net_udp.c b/src/platforms/posix/net_udp.c index b3e8a952..5d6db4e8 100644 --- a/src/platforms/posix/net_udp.c +++ b/src/platforms/posix/net_udp.c @@ -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 #include -#ifdef NeXT -#include -#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