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

From: Marcin Cieslak <saper_at_saper.info>
Date: Thu, 25 Oct 2018 11:38:46 +0000
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)
_at__at_ -360,7 +360,7 _at__at_
 
 /* 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;

Received on Thu Oct 25 2018 - 09:38:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC