From ad2d28ff240c3ce5d367b56fd9701d0c4ac1e75f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 17 Jul 2008 19:32:03 +0200 Subject: [PATCH] Get rid of hardcoding of various constants --- backuppcd-tar.c | 4 ---- backuppcd.c | 6 ------ net.c | 4 ---- 3 files changed, 14 deletions(-) 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_ -- 2.39.5