]> err.no Git - backuppcd/commitdiff
Get rid of hardcoding of various constants
authorTollef Fog Heen <tfheen@err.no>
Thu, 17 Jul 2008 17:32:03 +0000 (19:32 +0200)
committerTollef Fog Heen <tfheen@err.no>
Thu, 17 Jul 2008 17:32:03 +0000 (19:32 +0200)
backuppcd-tar.c
backuppcd.c
net.c

index 699753bd35f77b88893ed59668f4a5b827dbb25a..406d8415908d49c25c00671e9773dc13e1c62ff8 100644 (file)
@@ -15,10 +15,6 @@ typedef enum {
         BPC_CDT_STRING_PTR,
 } backuppc_clntdt_t;
 
-#ifndef MSG_WAITALL
-#define MSG_WAITALL 0
-#endif
-
 #ifndef BPC_MAXPATH_LEN
 #define BPC_MAXPATH_LEN 4096
 #endif                                                                                                                                    
index 1aaa37c9dffb03090487bfb13ad6f62f534b5f7a..a5cc3f8d0882d3bbc63258de59cccd1991b70b11 100644 (file)
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
-#ifndef O_LARGEFILE
-#define O_LARGEFILE 0
-#endif
-#ifndef SIGPIPE
-#define SIGPIPE 13
-#endif
 
 #ifndef BPC_MAXUSERNAME_LEN
 #define BPC_MAXUSERNAME_LEN 128
diff --git a/net.c b/net.c
index 3fc41ccc7369116cda0ec0fb948e23642714ce84..f5499631b86b81e002e971b16547026019831a41 100644 (file)
--- a/net.c
+++ b/net.c
 #include <errno.h>
 #include <stdio.h>
 
-#ifndef SHUT_RDWR
-#define SHUT_RDWR 2
-#endif
-
 /* Do things required for network access. */
 static int net_init(void) {
 #ifdef _USE_WIN32_