diff options
author | peter <peter@FreeBSD.org> | 2001-11-17 01:20:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-11-17 01:20:02 +0000 |
commit | d70c474c6aebafbf9588ca37c56e91607064c3c5 (patch) | |
tree | 14dfb158c6a6b564c5c25e892c7fd2044464721b | |
parent | 49371d5390a807eae6cf79c57b91584898a71e27 (diff) | |
download | FreeBSD-src-d70c474c6aebafbf9588ca37c56e91607064c3c5.zip FreeBSD-src-d70c474c6aebafbf9588ca37c56e91607064c3c5.tar.gz |
Fix printf warnings (int/long)
#if 0 around unused ifname_bsd_to_linux() function
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 54da5857..4e07abb 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1372,7 +1372,7 @@ linux_ifname(struct ifnet *ifp, char *name, size_t size) * bsdname and lxname need to be least IFNAMSIZ bytes long, but * can point to the same buffer. */ - +#if 0 static struct ifnet * ifname_bsd_to_linux(const char *bsdname, char *lxname) { @@ -1398,6 +1398,7 @@ ifname_bsd_to_linux(const char *bsdname, char *lxname) return (ifp); } +#endif /* * Translate a Linux interface name to a FreeBSD interface name, @@ -1768,7 +1769,8 @@ linux_ioctl(struct thread *td, struct linux_ioctl_args *args) #ifdef DEBUG if (ldebug(ioctl)) - printf(ARGS(ioctl, "%d, %04lx, *"), args->fd, args->cmd); + printf(ARGS(ioctl, "%d, %04lx, *"), args->fd, + (unsigned long)args->cmd); #endif fdp = td->td_proc->p_fd; |