[xiph-cvs] cvs commit: ices/src util.c

Brendan brendan at xiph.org
Fri Mar 14 14:42:25 PST 2003



brendan     03/03/14 17:42:25

  Modified:    .        configure.ac
               src      util.c
  Log:
  Necrotic code.

Revision  Changes    Path
1.7       +1 -14     ices/configure.ac

Index: configure.ac
===================================================================
RCS file: /cvs/ice/ices/configure.ac,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- configure.ac	14 Mar 2003 12:46:00 -0000	1.6
+++ configure.ac	14 Mar 2003 22:42:25 -0000	1.7
@@ -1,5 +1,5 @@
 # configure script for ices
-# $Id: configure.ac,v 1.6 2003/03/14 12:46:00 brendan Exp $
+# $Id: configure.ac,v 1.7 2003/03/14 22:42:25 brendan Exp $
 
 m4_define(ICES_MAJOR, 0)
 m4_define(ICES_MINOR, 2)
@@ -37,7 +37,6 @@
 AC_ISC_POSIX
 AC_MINIX
 
-IRIX=no
 case $host in
   *hpux*)
     CFLAGS="$CFLAGS -D_HPUX_SOURCE -DHPUX"
@@ -46,24 +45,12 @@
       CFLAGS="$CFLAGS -Aa"
     fi
   ;;
-  *irix*)
-    IRIX=yes
-  ;;
 esac
 
 dnl -- Compiler feature check --
 
 AC_C_CONST
 AC_C_BIGENDIAN
-
-dnl -- System library check --
-
-if test "$IRIX" = "yes"
-then
-  AC_MSG_WARN(Skipping library tests because they confuse Irix)
-else
-  AC_SEARCH_LIBS(gethostbyname, dns nsl resolv)
-fi
 
 dnl -- System header check --
 

<p><p>1.15      +0 -20     ices/src/util.c

Index: util.c
===================================================================
RCS file: /cvs/ice/ices/src/util.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- util.c	25 Apr 2002 03:27:23 -0000	1.14
+++ util.c	14 Mar 2003 22:42:25 -0000	1.15
@@ -33,26 +33,6 @@
 
 /* Public function definitions */
 
-char* ices_util_getip(const char *what, char *buf, int len)
-{
-  struct hostent *host;
-  char *temp;
-
-  /* do a little sanity checking */
-  if (what == NULL || buf == NULL || len <= 0)
-    return NULL;
-
-  host = gethostbyname(what);
-  if (host == NULL) {
-    buf = NULL;
-  } else {
-    temp = inet_ntoa(*(struct in_addr *)host->h_addr);
-    strncpy(buf, temp, len);
-  }
-
-  return buf;
-}
-
 /* Wrapper function around strdup. Will always return
  * an allocated string, "(null)" if given NULL argument. */
 char *

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list