svn commit: trunk/busybox: archival/libunarchive networking/libipro etc...

andersen at busybox.net andersen at busybox.net
Mon Jan 30 18:00:05 UTC 2006


Author: andersen
Date: 2006-01-30 10:00:02 -0800 (Mon, 30 Jan 2006)
New Revision: 13722

Log:
sort out yet more type issues


Modified:
   trunk/busybox/archival/libunarchive/get_header_cpio.c
   trunk/busybox/networking/libiproute/ipaddress.c
   trunk/busybox/networking/libiproute/iplink.c
   trunk/busybox/networking/libiproute/iproute.c
   trunk/busybox/networking/libiproute/libnetlink.c
   trunk/busybox/networking/libiproute/utils.c


Changeset:
Modified: trunk/busybox/archival/libunarchive/get_header_cpio.c
===================================================================
--- trunk/busybox/archival/libunarchive/get_header_cpio.c	2006-01-30 17:41:06 UTC (rev 13721)
+++ trunk/busybox/archival/libunarchive/get_header_cpio.c	2006-01-30 18:00:02 UTC (rev 13722)
@@ -66,7 +66,7 @@
 	/* There can be padding before archive header */
 	data_align(archive_handle, 4);
 
-	if (archive_xread_all_eof(archive_handle, cpio_header, 110) == 0) {
+	if (archive_xread_all_eof(archive_handle, (unsigned char*)cpio_header, 110) == 0) {
 		return(EXIT_FAILURE);
 	}
 	archive_handle->offset += 110;

Modified: trunk/busybox/networking/libiproute/ipaddress.c
===================================================================
--- trunk/busybox/networking/libiproute/ipaddress.c	2006-01-30 17:41:06 UTC (rev 13721)
+++ trunk/busybox/networking/libiproute/ipaddress.c	2006-01-30 18:00:02 UTC (rev 13722)
@@ -453,7 +453,7 @@
 				break;
 			case 1: /* scope */
 			{
-				int scope = 0;
+				uint32_t scope = 0;
 				NEXT_ARG();
 				filter.scopemask = -1;
 				if (rtnl_rtscope_a2n(&scope, *argv)) {
@@ -713,7 +713,7 @@
 			}
 			case 5: /* scope */
 			{
-				int scope = 0;
+				uint32_t scope = 0;
 				NEXT_ARG();
 				if (rtnl_rtscope_a2n(&scope, *argv)) {
 					invarg(*argv, "invalid scope value.");

Modified: trunk/busybox/networking/libiproute/iplink.c
===================================================================
--- trunk/busybox/networking/libiproute/iplink.c	2006-01-30 17:41:06 UTC (rev 13721)
+++ trunk/busybox/networking/libiproute/iplink.c	2006-01-30 18:00:02 UTC (rev 13722)
@@ -166,7 +166,7 @@
 {
 	struct ifreq ifr;
 	struct sockaddr_ll me;
-	int alen;
+	socklen_t alen;
 	int s;
 
 	s = socket(PF_PACKET, SOCK_DGRAM, 0);
@@ -211,7 +211,7 @@
 	memset(ifr, 0, sizeof(*ifr));
 	strcpy(ifr->ifr_name, dev);
 	ifr->ifr_hwaddr.sa_family = hatype;
-	alen = ll_addr_a2n(ifr->ifr_hwaddr.sa_data, 14, lla);
+	alen = ll_addr_a2n((unsigned char *)(ifr->ifr_hwaddr.sa_data), 14, lla);
 	if (alen < 0)
 		return -1;
 	if (alen != halen) {

Modified: trunk/busybox/networking/libiproute/iproute.c
===================================================================
--- trunk/busybox/networking/libiproute/iproute.c	2006-01-30 17:41:06 UTC (rev 13721)
+++ trunk/busybox/networking/libiproute/iproute.c	2006-01-30 18:00:02 UTC (rev 13722)
@@ -347,7 +347,7 @@
 			}
 			rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu);
 		} else if (matches(*argv, "protocol") == 0) {
-			int prot;
+			uint32_t prot;
 			NEXT_ARG();
 			if (rtnl_rtprot_a2n(&prot, *argv))
 				invarg("\"protocol\" value is invalid\n", *argv);
@@ -493,7 +493,7 @@
 
 	while (argc > 0) {
 		if (matches(*argv, "protocol") == 0) {
-			int prot = 0;
+			uint32_t prot = 0;
 			NEXT_ARG();
 			filter.protocolmask = -1;
 			if (rtnl_rtprot_a2n(&prot, *argv)) {

Modified: trunk/busybox/networking/libiproute/libnetlink.c
===================================================================
--- trunk/busybox/networking/libiproute/libnetlink.c	2006-01-30 17:41:06 UTC (rev 13721)
+++ trunk/busybox/networking/libiproute/libnetlink.c	2006-01-30 18:00:02 UTC (rev 13722)
@@ -30,7 +30,7 @@
 
 int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions)
 {
-	int addr_len;
+	socklen_t addr_len;
 
 	memset(rth, 0, sizeof(rth));
 

Modified: trunk/busybox/networking/libiproute/utils.c
===================================================================
--- trunk/busybox/networking/libiproute/utils.c	2006-01-30 17:41:06 UTC (rev 13721)
+++ trunk/busybox/networking/libiproute/utils.c	2006-01-30 18:00:02 UTC (rev 13722)
@@ -164,7 +164,7 @@
 int get_prefix_1(inet_prefix * dst, char *arg, int family)
 {
 	int err;
-	unsigned plen;
+	int plen;
 	char *slash;
 
 	memset(dst, 0, sizeof(*dst));




More information about the busybox-cvs mailing list