[rtems-libbsd commit] dhclient: Avoid SIZE_T_MAX

Sebastian Huber sebh at rtems.org
Mon Apr 18 13:19:25 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    87bff39d34edc4082877d702dac0e86c820dde70
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=87bff39d34edc4082877d702dac0e86c820dde70

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr 18 14:20:29 2016 +0200

dhclient: Avoid SIZE_T_MAX

Use SIZE_MAX instead of SIZE_T_MAX to avoid a dependency on BSD
specifics.

---

 freebsd/sbin/dhclient/privsep.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/freebsd/sbin/dhclient/privsep.c b/freebsd/sbin/dhclient/privsep.c
index 7b68059..d5198fa 100644
--- a/freebsd/sbin/dhclient/privsep.c
+++ b/freebsd/sbin/dhclient/privsep.c
@@ -23,6 +23,9 @@ __FBSDID("$FreeBSD$");
 
 #include "dhcpd.h"
 #include "privsep.h"
+#ifdef __rtems__
+#define	SIZE_T_MAX	SIZE_MAX
+#endif /* __rtems__ */
 
 struct buf *
 buf_open(size_t len)



More information about the vc mailing list