fix WARNING pid 24503 (uhsoctl): ioctl sign-extension ioctl ffffffff8044692b

Marcin Cieslak saper at saper.info
Thu Oct 25 11:38:49 UTC 2018


The following patch seems to fix the signed ioctl value warnings
in uhsoctl().

The code is the same in the current and stable branches.

Marcin

Index: usr.sbin/uhsoctl/uhsoctl.c
===================================================================
--- usr.sbin/uhsoctl/uhsoctl.c	(revision 339406)
+++ usr.sbin/uhsoctl/uhsoctl.c	(working copy)
@@ -360,7 +360,7 @@
 
 /* Add/remove IP address from an interface */
 static int
-ifaddr_ad(int d, const char *ifnam, struct sockaddr *sa, struct sockaddr *mask)
+ifaddr_ad(unsigned long d, const char *ifnam, struct sockaddr *sa, struct sockaddr *mask)
 {
 	struct ifaliasreq req;
 	int fd, error;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3663 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20181025/946f781b/attachment.bin>


More information about the freebsd-current mailing list