Print this page
5910 libnisdb won't build with modern GCC

@@ -18,16 +18,15 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2015 Gary Mills
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * DESCRIPTION: Contains utilities relating to TTL calculation.
  */
 #include <unistd.h>
 #include <syslog.h>

@@ -283,11 +282,10 @@
  *
  */
 suc_code
 add_to_timeval(struct timeval *t1, int t2)
 {
-        long usec;
         struct timeval oldval;
 
         oldval.tv_sec = t1->tv_sec;
 
         /* Add seconds part */