summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-02-14 00:53:43 +0000
committerWayne Davison <wayned@samba.org>2005-02-14 00:53:43 +0000
commit4f5b0756df0dfc925b9576db47ecce949c378e18 (patch)
tree770662e2442bc1f022e592d46a4489948f8be2ac /lib
parentfe1c19dcdfa000c2461e85ed7bf712de49904377 (diff)
downloadrsync-4f5b0756df0dfc925b9576db47ecce949c378e18.tar.gz
rsync-4f5b0756df0dfc925b9576db47ecce949c378e18.tar.bz2
rsync-4f5b0756df0dfc925b9576db47ecce949c378e18.zip
John E. Malmberg convinced me to standardize on #ifs for defined
values instead of non-zero.
Diffstat (limited to 'lib')
-rw-r--r--lib/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compat.c b/lib/compat.c
index 879f5487..97b40ffd 100644
--- a/lib/compat.c
+++ b/lib/compat.c
@@ -155,7 +155,7 @@
{
unsigned char *p = (unsigned char *)&ip.s_addr;
static char buf[18];
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
snprintf(buf, 18, "%d.%d.%d.%d",
(int)p[0], (int)p[1], (int)p[2], (int)p[3]);
#else
@@ -196,7 +196,7 @@
/* some systems don't take the 2nd argument */
int sys_gettimeofday(struct timeval *tv)
{
-#if HAVE_GETTIMEOFDAY_TZ
+#ifdef HAVE_GETTIMEOFDAY_TZ
return gettimeofday(tv, NULL);
#else
return gettimeofday(tv);