From: Tollef Fog Heen Date: Thu, 17 Jul 2008 17:32:03 +0000 (+0200) Subject: Get rid of hardcoding of various constants X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad2d28ff240c3ce5d367b56fd9701d0c4ac1e75f;p=backuppcd Get rid of hardcoding of various constants --- diff --git a/backuppcd-tar.c b/backuppcd-tar.c index 699753b..406d841 100644 --- a/backuppcd-tar.c +++ b/backuppcd-tar.c @@ -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 diff --git a/backuppcd.c b/backuppcd.c index 1aaa37c..a5cc3f8 100644 --- a/backuppcd.c +++ b/backuppcd.c @@ -52,12 +52,6 @@ #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 3fc41cc..f549963 100644 --- a/net.c +++ b/net.c @@ -43,10 +43,6 @@ #include #include -#ifndef SHUT_RDWR -#define SHUT_RDWR 2 -#endif - /* Do things required for network access. */ static int net_init(void) { #ifdef _USE_WIN32_