[pisa-src] r1371 - in trunk: include/util.h libpisa/util.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 28 Oct 2009 12:54:59 +0100

Author: tjansen
Date: Wed Oct 28 12:54:58 2009
New Revision: 1371

Log:
Removed unused function pisa_uptime.

Modified:
   trunk/include/util.h
   trunk/libpisa/util.c

Modified: trunk/include/util.h
==============================================================================
--- trunk/include/util.h        Wed Oct 28 12:53:03 2009        (r1370)
+++ trunk/include/util.h        Wed Oct 28 12:54:58 2009        (r1371)
@@ -142,7 +142,6 @@
 
 struct pisa_common_addr;
 
-long pisa_uptime(void);
 int pisa_read_nameserver(struct in_addr *dnsaddr, const char *resolvconf);
 
 int pisa_for_each_hosts_file_line(char *hosts_file,

Modified: trunk/libpisa/util.c
==============================================================================
--- trunk/libpisa/util.c        Wed Oct 28 12:53:03 2009        (r1370)
+++ trunk/libpisa/util.c        Wed Oct 28 12:54:58 2009        (r1371)
@@ -545,17 +545,6 @@
 }
 
 /**
- * Get the current uptime as long type.
- * @return uptime
- */
-long pisa_uptime(void)
-{
-       struct sysinfo info;
-       sysinfo(&info);
-       return info.uptime;
-}
-
-/**
  * Read the IP address of the primary name server from /etc/resolv.conf.
  *
  * @param dnsaddr      [out] DNS server address

Other related posts:

  • » [pisa-src] r1371 - in trunk: include/util.h libpisa/util.c - Thomas Jansen