Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb KNF
details: https://anonhg.NetBSD.org/src/rev/d7c385383b93
branches: trunk
changeset: 1008375:d7c385383b93
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 21 06:54:32 2020 +0000
description:
KNF
diffstat:
sys/dev/usb/if_umbreg.h | 4 ++--
sys/dev/usb/if_ure.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 1dc49f9f090a -r d7c385383b93 sys/dev/usb/if_umbreg.h
--- a/sys/dev/usb/if_umbreg.h Sat Mar 21 06:11:05 2020 +0000
+++ b/sys/dev/usb/if_umbreg.h Sat Mar 21 06:54:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_umbreg.h,v 1.1 2018/07/31 16:44:29 khorben Exp $ */
+/* $NetBSD: if_umbreg.h,v 1.2 2020/03/21 06:54:32 skrll Exp $ */
/* $OpenBSD: if_umb.h,v 1.4 2017/04/18 13:27:55 gerhard Exp $ */
/*
@@ -40,7 +40,7 @@
return vdp->descr;
vdp++;
}
- snprintf(sval, sizeof (sval), "#%d", val);
+ snprintf(sval, sizeof(sval), "#%d", val);
return sval;
}
diff -r 1dc49f9f090a -r d7c385383b93 sys/dev/usb/if_ure.c
--- a/sys/dev/usb/if_ure.c Sat Mar 21 06:11:05 2020 +0000
+++ b/sys/dev/usb/if_ure.c Sat Mar 21 06:54:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ure.c,v 1.38 2020/03/15 23:04:51 thorpej Exp $ */
+/* $NetBSD: if_ure.c,v 1.39 2020/03/21 06:54:43 skrll Exp $ */
/* $OpenBSD: if_ure.c,v 1.10 2018/11/02 21:32:30 jcs Exp $ */
/*-
@@ -30,7 +30,7 @@
/* RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.38 2020/03/15 23:04:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.39 2020/03/21 06:54:43 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -962,7 +962,7 @@
eaddr[4] = machi & 0xff;
eaddr[5] = (machi >> 8) & 0xff;
}
- memcpy(un->un_eaddr, eaddr, sizeof un->un_eaddr);
+ memcpy(un->un_eaddr, eaddr, sizeof(un->un_eaddr));
struct ifnet *ifp = usbnet_ifp(un);
Home |
Main Index |
Thread Index |
Old Index