[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH 1/5] bb_socklen_t must be signed int
From: Matt Whitlock <busybox () mattwhitlock ! name>
Date: 2015-04-24 8:12:18
Message-ID: 1429863142-23199-1-git-send-email-busybox () mattwhitlock ! name
[Download RAW message or body]
BSD and POSIX specify socklen_t as int. Busybox should too, to avoid pointer signedness warnings.
---
include/libbb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/libbb.h b/include/libbb.h
index f0ac1f5..dc0acd8 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -143,7 +143,7 @@
* (in case "is it defined already" detection above failed)
*/
# define socklen_t bb_socklen_t
- typedef unsigned socklen_t;
+ typedef int socklen_t;
# endif
#endif
#ifndef HAVE_CLEARENV
--
2.0.5
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic