summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-06-28 23:32:44 +0000
committerTed Lemon <source@isc.org>2001-06-28 23:32:44 +0000
commit50d70c187d46a4a5f911c4ba737c244b2fc75c6f (patch)
tree2d00c33a239140ee4564cba2d313e6c4e2f09f63
parent887b7c1781c9986913bbf18e565b75afd30884db (diff)
downloadisc-dhcp-50d70c187d46a4a5f911c4ba737c244b2fc75c6f.tar.gz
Fix a bug in the fgetpos macro.
-rw-r--r--includes/cf/sunos4.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/cf/sunos4.h b/includes/cf/sunos4.h
index 7a8c9587..26a5c397 100644
--- a/includes/cf/sunos4.h
+++ b/includes/cf/sunos4.h
@@ -3,7 +3,7 @@
System dependencies for SunOS 4 (tested on 4.1.4)... */
/*
- * Copyright (c) 1996-1999 Internet Software Consortium.
+ * Copyright (c) 1996-2001 Internet Software Consortium.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -56,7 +56,7 @@
#define SOCKLEN_T int
#define fpos_t long
-#define fgetpos(f, p) ((*pos = ftell (f)) == -1 ? -1 : 0)
+#define fgetpos(f, p) (((*(p)) = ftell (f)) == -1 ? -1 : 0)
#define fsetpos(f, p) (fseek (f, p, SEEK_SET))
/* No endian.h either. */