[hipl-commit] [trunk] Rev 4217: _BSD_SOURCE cleanup: Remove all unnecessary instances and misleading comments.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Fri, 9 Apr 2010 19:26:46 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 09/04/2010 at 19:26:46
Revision: 4217
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  _BSD_SOURCE cleanup: Remove all unnecessary instances and misleading comments.

Modified:
  M  firewall/cache_port.c
  M  firewall/common_hipd_msg.c
  M  firewall/esp_prot_fw_msg.c
  M  firewall/midauth.c
  M  firewall/pisa.c
  M  firewall/pisa_cert.c
  M  firewall/proxyconndb.c
  M  firewall/proxydb.c
  M  firewall/user_ipsec_api.c
  M  firewall/user_ipsec_fw_msg.c
  M  firewall/user_ipsec_sadb.c
  M  hipd/cert.c
  M  hipd/configfilereader.c
  M  hipd/dh.c
  M  hipd/dht.c
  M  hipd/dhtqueue.c
  M  hipd/esp_prot_anchordb.c
  M  hipd/esp_prot_hipd_msg.c
  M  hipd/esp_prot_light_update.c
  M  hipd/hadb.c
  M  hipd/hadb_legacy.c
  M  hipd/hi3.c
  M  hipd/keymat.c
  M  hipd/nat.c
  M  hipd/netdev.c
  M  hipd/oppdb.c
  M  hipd/oppipdb.c
  M  hipd/pfkeyapi.c
  M  hipd/registration.c
  M  hipd/update.c
  M  hipd/update_legacy.c
  M  hipd/user_ipsec_hipd_msg.c
  M  hipd/user_ipsec_sadb_api.c
  M  lib/conf/hipconf.c
  M  lib/core/certtools.c
  M  lib/core/crypto.c
  M  lib/core/hit.c
  M  lib/dht/libhipdhtxml.c
  M  lib/ipsec/pfkey.c
  M  lib/opphip/wrap_db.c
  M  lib/tool/checksum.c
  M  lib/tool/lutil.c
  M  lib/tool/pfkeysadb.c
  M  lib/tool/pfkeysadb.h
  M  lib/tool/pk.c
  M  test/auth_performance.c
  M  test/certteststub.c
  M  test/conntest-client-hip.c
  M  test/conntest-client-native.c
  M  test/conntest-server.c
  M  test/cookietest.c
  M  test/dhtteststub.c
  M  test/hashtest.c
  M  test/keygentest.c
  M  test/misc_install.c
  M  tools/pisacert.c

=== modified file 'firewall/cache_port.c'
--- firewall/cache_port.c       2010-04-09 15:20:38 +0000
+++ firewall/cache_port.c       2010-04-09 16:24:44 +0000
@@ -20,8 +20,6 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 
 #include "cache_port.h"

=== modified file 'firewall/common_hipd_msg.c'
--- firewall/common_hipd_msg.c  2010-04-09 15:20:38 +0000
+++ firewall/common_hipd_msg.c  2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "common_hipd_msg.h"
 #include "lib/core/ife.h"
 #include "lib/core/debug.h"

=== modified file 'firewall/esp_prot_fw_msg.c'
--- firewall/esp_prot_fw_msg.c  2010-04-09 15:20:38 +0000
+++ firewall/esp_prot_fw_msg.c  2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include <netinet/udp.h>
 
 #include "lib/core/debug.h"

=== modified file 'firewall/midauth.c'
--- firewall/midauth.c  2010-04-08 11:15:32 +0000
+++ firewall/midauth.c  2010-04-09 16:24:44 +0000
@@ -17,7 +17,6 @@
  * Currently we do neither.
  */
 
-/* required by the libipq header */
 #define _BSD_SOURCE
 
 #include <string.h>

=== modified file 'firewall/pisa.c'
--- firewall/pisa.c     2010-04-08 11:21:53 +0000
+++ firewall/pisa.c     2010-04-09 16:24:44 +0000
@@ -13,7 +13,6 @@
  * @author Dominic Gatzen
  */
 
-/* required by the libipq header for IFNAMSZ */
 #define _BSD_SOURCE
 
 #include <string.h>

=== modified file 'firewall/pisa_cert.c'
--- firewall/pisa_cert.c        2010-03-18 21:15:21 +0000
+++ firewall/pisa_cert.c        2010-04-09 16:24:44 +0000
@@ -11,6 +11,8 @@
  * @author Thomas Jansen
  */
 
+#define _BSD_SOURCE
+
 #include "pisa_cert.h"
 
 #include <sys/types.h>

=== modified file 'firewall/proxyconndb.c'
--- firewall/proxyconndb.c      2010-04-09 15:20:38 +0000
+++ firewall/proxyconndb.c      2010-04-09 16:24:44 +0000
@@ -13,8 +13,6 @@
  * @author Weiwei Hu
  */
 
-#define _BSD_SOURCE
-
 #include "hipd/hidb.h"
 #include "lib/core/hashtable.h"
 #include "proxyconndb.h"

=== modified file 'firewall/proxydb.c'
--- firewall/proxydb.c  2010-04-09 15:20:38 +0000
+++ firewall/proxydb.c  2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * @author Weiwei Hu
  */
 
-#define _BSD_SOURCE
-
 #include "proxydb.h"
 
 HIP_HASHTABLE *hip_proxy_db = NULL;

=== modified file 'firewall/user_ipsec_api.c'
--- firewall/user_ipsec_api.c   2010-04-09 15:20:38 +0000
+++ firewall/user_ipsec_api.c   2010-04-09 16:24:44 +0000
@@ -11,8 +11,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include "user_ipsec_api.h"
 #include "user_ipsec_sadb.h"
 #include "user_ipsec_esp.h"

=== modified file 'firewall/user_ipsec_fw_msg.c'
--- firewall/user_ipsec_fw_msg.c        2010-04-09 15:20:38 +0000
+++ firewall/user_ipsec_fw_msg.c        2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "esp_prot_fw_msg.h"
 #include "firewall.h"
 #include "lib/core/builder.h"

=== modified file 'firewall/user_ipsec_sadb.c'
--- firewall/user_ipsec_sadb.c  2010-04-09 15:20:38 +0000
+++ firewall/user_ipsec_sadb.c  2010-04-09 16:24:44 +0000
@@ -12,8 +12,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include <openssl/sha.h>
 #include <string.h>
 

=== modified file 'hipd/cert.c'
--- hipd/cert.c 2010-04-09 15:20:38 +0000
+++ hipd/cert.c 2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * @author Samu Varjonen
  */
 
-#define _BSD_SOURCE
-
 #include "cert.h"
 
 /****************************************************************************

=== modified file 'hipd/configfilereader.c'
--- hipd/configfilereader.c     2010-04-09 15:20:38 +0000
+++ hipd/configfilereader.c     2010-04-09 16:24:44 +0000
@@ -6,8 +6,6 @@
  * @see     configfilereader.h for usage instructions.
  */
 
-#define _BSD_SOURCE
-
 #include "configfilereader.h"
 #include "lib/core/debug.h"
 

=== modified file 'hipd/dh.c'
--- hipd/dh.c   2010-04-09 15:20:38 +0000
+++ hipd/dh.c   2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Tobias Heer <heer@xxxxxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "dh.h"
 
 DH *dh_table[HIP_MAX_DH_GROUP_ID] = {0};

=== modified file 'hipd/dht.c'
--- hipd/dht.c  2010-04-09 15:20:38 +0000
+++ hipd/dht.c  2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author: Samu Varjonen <samu.varjonen@xxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "dht.h"
 #include "hipd.h"
 #include "lib/core/hostid.h"

=== modified file 'hipd/dhtqueue.c'
--- hipd/dhtqueue.c     2010-04-09 15:20:38 +0000
+++ hipd/dhtqueue.c     2010-04-09 16:24:44 +0000
@@ -5,8 +5,6 @@
  * @note:   Distributed under <a 
href="http://www.gnu.org/licenses/gpl.txt";>GNU/GPL</a>. This is actually a 
singly linked list. -samu
  */
 
-#define _BSD_SOURCE
-
 #include <stdlib.h>
 #include "dhtqueue.h"
 #include "hipd.h"

=== modified file 'hipd/esp_prot_anchordb.c'
--- hipd/esp_prot_anchordb.c    2010-04-09 15:20:38 +0000
+++ hipd/esp_prot_anchordb.c    2010-04-09 16:24:44 +0000
@@ -14,8 +14,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include "lib/core/esp_prot_common.h"
 #include "lib/core/builder.h"
 #include "esp_prot_anchordb.h"

=== modified file 'hipd/esp_prot_hipd_msg.c'
--- hipd/esp_prot_hipd_msg.c    2010-04-09 15:20:38 +0000
+++ hipd/esp_prot_hipd_msg.c    2010-04-09 16:24:44 +0000
@@ -12,8 +12,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include "esp_prot_hipd_msg.h"
 #include "esp_prot_anchordb.h"
 #include "esp_prot_light_update.h"

=== modified file 'hipd/esp_prot_light_update.c'
--- hipd/esp_prot_light_update.c        2010-04-09 15:20:38 +0000
+++ hipd/esp_prot_light_update.c        2010-04-09 16:24:44 +0000
@@ -12,8 +12,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include "esp_prot_light_update.h"
 #include "esp_prot_anchordb.h"
 #include "hipd.h"

=== modified file 'hipd/hadb.c'
--- hipd/hadb.c 2010-04-09 15:20:38 +0000
+++ hipd/hadb.c 2010-04-09 16:24:44 +0000
@@ -36,8 +36,6 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include <limits.h>
 
 #include "config.h"

=== modified file 'hipd/hadb_legacy.c'
--- hipd/hadb_legacy.c  2010-04-09 15:20:38 +0000
+++ hipd/hadb_legacy.c  2010-04-09 16:24:44 +0000
@@ -11,8 +11,6 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "hadb_legacy.h"
 
 /**

=== modified file 'hipd/hi3.c'
--- hipd/hi3.c  2010-04-09 15:20:38 +0000
+++ hipd/hi3.c  2010-04-09 16:24:44 +0000
@@ -12,6 +12,7 @@
  *
  * @author Andrey Lukyanenko
  */
+
 #define _BSD_SOURCE
 
 #include "hi3.h"

=== modified file 'hipd/keymat.c'
--- hipd/keymat.c       2010-04-09 15:20:38 +0000
+++ hipd/keymat.c       2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Tobias Heer <heer#tobibox.de>
  */
 
-#define _BSD_SOURCE
-
 #include "keymat.h"
 #include "lib/core/hit.h"
 

=== modified file 'hipd/nat.c'
--- hipd/nat.c  2010-04-09 15:20:38 +0000
+++ hipd/nat.c  2010-04-09 16:24:44 +0000
@@ -24,8 +24,6 @@
  * @note    All Doxygen comments have been added in version 1.1.
  */
 
-#define _BSD_SOURCE
-
 #include "nat.h"
 #include <string.h>
 #include <stdio.h>

=== modified file 'hipd/netdev.c'
--- hipd/netdev.c       2010-04-09 15:20:38 +0000
+++ hipd/netdev.c       2010-04-09 16:24:44 +0000
@@ -18,6 +18,7 @@
  *
  * @author Miika Komu <miika@xxxxxx>
  */
+
 #define _BSD_SOURCE
 
 #include <net/if.h>

=== modified file 'hipd/oppdb.c'
--- hipd/oppdb.c        2010-04-09 15:20:38 +0000
+++ hipd/oppdb.c        2010-04-09 16:24:44 +0000
@@ -37,8 +37,6 @@
  * - Bing Zhou <bingzhou@xxxxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "config.h"
 #include "oppdb.h"
 #include "hadb.h"

=== modified file 'hipd/oppipdb.c'
--- hipd/oppipdb.c      2010-04-09 15:20:38 +0000
+++ hipd/oppipdb.c      2010-04-09 16:24:44 +0000
@@ -12,8 +12,6 @@
  * @author  Alberto Garcia
  */
 
-#define _BSD_SOURCE
-
 #include "config.h"
 #ifdef CONFIG_HIP_OPPORTUNISTIC
 

=== modified file 'hipd/pfkeyapi.c'
--- hipd/pfkeyapi.c     2010-04-09 15:00:47 +0000
+++ hipd/pfkeyapi.c     2010-04-09 16:24:44 +0000
@@ -11,9 +11,6 @@
  * @see lib/tool/xfrmapi.c for the wrappers for XFRM API
  */
 
-/* required for caddr_t */
-#define _BSD_SOURCE
-
 #include <linux/ipsec.h>
 
 #include "config.h"

=== modified file 'hipd/registration.c'
--- hipd/registration.c 2010-04-09 15:20:38 +0000
+++ hipd/registration.c 2010-04-09 16:24:44 +0000
@@ -12,8 +12,6 @@
  * @see     hiprelay.h
  */
 
-#define _BSD_SOURCE
-
 #include "registration.h"
 #include "hadb.h"
 

=== modified file 'hipd/update.c'
--- hipd/update.c       2010-04-08 11:15:32 +0000
+++ hipd/update.c       2010-04-09 16:24:44 +0000
@@ -8,7 +8,6 @@
  * @author  Baris Boyvat <baris#boyvat.com>
  */
 
-/* requiread for s6_addr32 */
 #define _BSD_SOURCE
 
 #include "config.h"

=== modified file 'hipd/update_legacy.c'
--- hipd/update_legacy.c        2010-04-09 15:20:38 +0000
+++ hipd/update_legacy.c        2010-04-09 16:24:44 +0000
@@ -9,8 +9,6 @@
  * @author Baris Boyvat
  */
 
-#define _BSD_SOURCE
-
 #include "update_legacy.h"
 
 /**

=== modified file 'hipd/user_ipsec_hipd_msg.c'
--- hipd/user_ipsec_hipd_msg.c  2010-04-09 15:20:38 +0000
+++ hipd/user_ipsec_hipd_msg.c  2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "user_ipsec_hipd_msg.h"
 #include "hipd.h"
 #include "init.h"

=== modified file 'hipd/user_ipsec_sadb_api.c'
--- hipd/user_ipsec_sadb_api.c  2010-04-09 15:20:38 +0000
+++ hipd/user_ipsec_sadb_api.c  2010-04-09 16:24:44 +0000
@@ -12,8 +12,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include "user_ipsec_sadb_api.h"
 #include "lib/core/esp_prot_common.h"
 #include "user_ipsec_hipd_msg.h"

=== modified file 'lib/conf/hipconf.c'
--- lib/conf/hipconf.c  2010-03-18 21:15:21 +0000
+++ lib/conf/hipconf.c  2010-04-09 16:24:44 +0000
@@ -32,7 +32,6 @@
  * @todo    adding of new extensions should be made simpler
  */
 
-/* required for ifreq */
 #define _BSD_SOURCE
 
 #include <sys/ioctl.h>

=== modified file 'lib/core/certtools.c'
--- lib/core/certtools.c        2010-04-09 15:20:38 +0000
+++ lib/core/certtools.c        2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * @author Samu Varjonen
  */
 
-#define _BSD_SOURCE
-
 #include "certtools.h"
 #include "straddr.h"
 #include "lib/core/crypto.h"

=== modified file 'lib/core/crypto.c'
--- lib/core/crypto.c   2010-04-09 15:20:38 +0000
+++ lib/core/crypto.c   2010-04-09 16:24:44 +0000
@@ -28,8 +28,6 @@
  * @todo "Bad signature r or s size" occurs randomly. This should not happen.
  */
 
-#define _BSD_SOURCE
-
 #include "config.h"
 #include "crypto.h"
 #include "keylen.h"

=== modified file 'lib/core/hit.c'
--- lib/core/hit.c      2010-03-10 17:44:36 +0000
+++ lib/core/hit.c      2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "config.h"
 #include "hit.h"
 #include "debug.h"

=== modified file 'lib/dht/libhipdhtxml.c'
--- lib/dht/libhipdhtxml.c      2010-04-09 15:20:38 +0000
+++ lib/dht/libhipdhtxml.c      2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * @author Samu Varjonen
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'lib/ipsec/pfkey.c'
--- lib/ipsec/pfkey.c   2010-03-29 17:50:59 +0000
+++ lib/ipsec/pfkey.c   2010-04-09 16:24:44 +0000
@@ -31,7 +31,6 @@
  * SUCH DAMAGE.
  */
 
-/* required for caddr_t */
 #define _BSD_SOURCE
 
 #include <sys/types.h>

=== modified file 'lib/opphip/wrap_db.c'
--- lib/opphip/wrap_db.c        2010-04-09 15:20:38 +0000
+++ lib/opphip/wrap_db.c        2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include <sys/types.h>
 #include <unistd.h>
 #include <errno.h>

=== modified file 'lib/tool/checksum.c'
--- lib/tool/checksum.c 2010-03-09 21:23:38 +0000
+++ lib/tool/checksum.c 2010-04-09 16:24:44 +0000
@@ -9,7 +9,6 @@
  * @note check if some of the checksum algos are redundant
  */
 
-/* required for s6_addr */
 #define _BSD_SOURCE
 
 #include <netinet/ip.h>

=== modified file 'lib/tool/lutil.c'
--- lib/tool/lutil.c    2010-04-09 15:20:38 +0000
+++ lib/tool/lutil.c    2010-04-09 16:24:44 +0000
@@ -8,8 +8,6 @@
  * is borrowed from glibc project.
  */
 
-#define _BSD_SOURCE
-
 #include "lutil.h"
 #include "lib/conf/hipconf.h"
 

=== modified file 'lib/tool/pfkeysadb.c'
--- lib/tool/pfkeysadb.c        2010-03-30 00:04:46 +0000
+++ lib/tool/pfkeysadb.c        2010-04-09 16:24:44 +0000
@@ -5,7 +5,7 @@
  *
  * @brief this file contains IPsec management functionality borrowed from 
Racoon
  */
-/* required for caddr_t */
+
 #define _BSD_SOURCE
 
 #include "config.h"

=== modified file 'lib/tool/pfkeysadb.h'
--- lib/tool/pfkeysadb.h        2010-03-29 19:28:37 +0000
+++ lib/tool/pfkeysadb.h        2010-04-09 16:24:44 +0000
@@ -1,7 +1,6 @@
 #ifndef HIP_LIB_TOOL_PFKEYSADB_H
 #define HIP_LIB_TOOL_PFKEYSADB_H
 
-/* required for caddr_t */
 #define _BSD_SOURCE
 
 #include <sys/socket.h>

=== modified file 'lib/tool/pk.c'
--- lib/tool/pk.c       2010-04-09 15:20:38 +0000
+++ lib/tool/pk.c       2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include "config.h"
 #include "pk.h"
 #include "lib/performance/performance.h"

=== modified file 'test/auth_performance.c'
--- test/auth_performance.c     2010-04-09 15:20:38 +0000
+++ test/auth_performance.c     2010-04-09 16:24:44 +0000
@@ -10,8 +10,6 @@
  * @author Tobias Heer
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>              /* printf & co */
 #include <stdlib.h>             /* exit & co */
 #include <unistd.h>

=== modified file 'test/certteststub.c'
--- test/certteststub.c 2010-04-09 15:20:38 +0000
+++ test/certteststub.c 2010-04-09 16:24:44 +0000
@@ -15,8 +15,6 @@
  *
  */
 
-#define _BSD_SOURCE
-
 #include <arpa/inet.h>
 #include <sys/time.h>
 #include <time.h>

=== modified file 'test/conntest-client-hip.c'
--- test/conntest-client-hip.c  2010-04-09 15:20:38 +0000
+++ test/conntest-client-hip.c  2010-04-09 16:24:44 +0000
@@ -15,8 +15,6 @@
  * @author  Miika Komu <miika@xxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'test/conntest-client-native.c'
--- test/conntest-client-native.c       2010-04-09 15:20:38 +0000
+++ test/conntest-client-native.c       2010-04-09 16:24:44 +0000
@@ -20,8 +20,6 @@
  * @note: HIPU: does not work on MAC OS X
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'test/conntest-server.c'
--- test/conntest-server.c      2010-04-09 15:20:38 +0000
+++ test/conntest-server.c      2010-04-09 16:24:44 +0000
@@ -9,8 +9,6 @@
  * @todo rewrite/refactor for better modularity
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'test/cookietest.c'
--- test/cookietest.c   2010-04-09 15:20:38 +0000
+++ test/cookietest.c   2010-04-09 16:24:44 +0000
@@ -3,7 +3,6 @@
  *
  * Distributed under <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
  */
-#define _BSD_SOURCE
 
 #include "lib/core/debug.h"
 

=== modified file 'test/dhtteststub.c'
--- test/dhtteststub.c  2010-04-09 15:20:38 +0000
+++ test/dhtteststub.c  2010-04-09 16:24:44 +0000
@@ -13,8 +13,6 @@
  * @author Samu Varjonen
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'test/hashtest.c'
--- test/hashtest.c     2010-04-09 15:20:38 +0000
+++ test/hashtest.c     2010-04-09 16:24:44 +0000
@@ -3,7 +3,6 @@
  *
  * Distributed under <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
  */
-#define _BSD_SOURCE
 
 #include <stdio.h>
 #include <stdlib.h>

=== modified file 'test/keygentest.c'
--- test/keygentest.c   2010-04-09 15:20:38 +0000
+++ test/keygentest.c   2010-04-09 16:24:44 +0000
@@ -3,7 +3,6 @@
  *
  * Distributed under <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
  */
-#define _BSD_SOURCE
 
 #include <stdio.h>
 #include <string.h>

=== modified file 'test/misc_install.c'
--- test/misc_install.c 2010-04-09 15:20:38 +0000
+++ test/misc_install.c 2010-04-09 16:24:44 +0000
@@ -3,7 +3,6 @@
  *
  * Distributed under <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
  */
-#define _BSD_SOURCE
 
 #include "misc_install.h"
 

=== modified file 'tools/pisacert.c'
--- tools/pisacert.c    2010-04-09 15:20:38 +0000
+++ tools/pisacert.c    2010-04-09 16:24:44 +0000
@@ -7,8 +7,6 @@
  * @author Thomas Jansen <mithi@xxxxxxxxx>
  */
 
-#define _BSD_SOURCE
-
 #include <sys/time.h>
 #include <time.h>
 #include <zlib.h>

Other related posts:

  • » [hipl-commit] [trunk] Rev 4217: _BSD_SOURCE cleanup: Remove all unnecessary instances and misleading comments. - Diego Biurrun