[nas] [patch] remove unused vars, function

Stefan Huehner stefan at huehner.org
Sat Aug 26 10:58:58 MDT 2006


Hi,

attached patch removes some unsued variables in lib/audio/nameaddr.c and
and unused function in server/os/utils.c.

Regards,
Stefan

-------------- next part --------------
Index: server/os/utils.c
===================================================================
--- server/os/utils.c	(revision 184)
+++ server/os/utils.c	(working copy)
@@ -238,25 +240,6 @@
 #endif /* AMOEBA */
 #endif
 
-AdjustWaitForDelay(pointer waitTime, unsigned long newdelay)
-{
-    static struct timeval delay_val;
-    struct timeval **wt = (struct timeval **) waitTime;
-    unsigned long olddelay;
-
-    if (*wt == NULL) {
-        delay_val.tv_sec = newdelay / 1000;
-        delay_val.tv_usec = 1000 * (newdelay % 1000);
-        *wt = &delay_val;
-    } else {
-        olddelay = (*wt)->tv_sec * 1000 + (*wt)->tv_usec / 1000;
-        if (newdelay < olddelay) {
-            (*wt)->tv_sec = newdelay / 1000;
-            (*wt)->tv_usec = 1000 * (newdelay % 1000);
-        }
-    }
-}
-
 void
 UseMsg(void)
 {
Index: lib/audio/nameaddr.c
===================================================================
--- lib/audio/nameaddr.c	(revision 184)
+++ lib/audio/nameaddr.c	(working copy)
@@ -240,7 +240,6 @@
                               char **serveraddrp		/* return */
                               )
 {
-	char	netype[128], sysname[128], nodname[128];
 	char	*procname = "Aulib/_AuMakeStreamsConnection";
 	struct	utsname	 machine;
 	int	fd; 


More information about the Nas mailing list