instead of 200. Move the defines of True and False to rsync.h. Eliminate
the defines of BOOL in loadparm.c and params.c because it is already
defined in rsync.h. Changes suggested by Roman Gollent roman.gollent@wdr.com
*/
#include "rsync.h"
-#define BOOL int
-#define False 0
-#define True 1
#define PTR_DIFF(p1,p2) ((ptrdiff_t)(((char *)(p1)) - (char *)(p2)))
#define strequal(a,b) (strcasecmp(a,b)==0)
#define BOOLSTR(b) ((b) ? "Yes" : "No")
*/
#include "rsync.h"
-#define BOOL int
-#define False 0
-#define True 1
/* -------------------------------------------------------------------------- **
* Constants...
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#define False 0
+#define True 1
+
#define BLOCK_SIZE 700
#define RSYNC_RSH_ENV "RSYNC_RSH"
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 256
+#endif
+
/* the length of the md4 checksum */
#define MD4_SUM_LENGTH 16
#define SUM_LENGTH 16
{
struct hostent *hp;
struct sockaddr_in sock;
- char host_name[200];
+ char host_name[MAXHOSTNAMELEN];
int res;
int one=1;