From owner-svn-soc-all@FreeBSD.ORG Tue Aug 13 19:25:36 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 274E2522 for ; Tue, 13 Aug 2013 19:25:36 +0000 (UTC) (envelope-from syuu@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 141BA2EC4 for ; Tue, 13 Aug 2013 19:25:36 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7DJPZ8t003633 for ; Tue, 13 Aug 2013 19:25:35 GMT (envelope-from syuu@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r7DJPZVQ003625 for svn-soc-all@FreeBSD.org; Tue, 13 Aug 2013 19:25:35 GMT (envelope-from syuu@FreeBSD.org) Date: Tue, 13 Aug 2013 19:25:35 GMT Message-Id: <201308131925.r7DJPZVQ003625@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to syuu@FreeBSD.org using -f From: syuu@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r255886 - in soc2013/syuu/bhyve_usb/usr.sbin/bhyve: . usb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2013 19:25:36 -0000 Author: syuu Date: Tue Aug 13 19:25:35 2013 New Revision: 255886 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255886 Log: move ARRAY_SIZE to header Modified: soc2013/syuu/bhyve_usb/usr.sbin/bhyve/Makefile soc2013/syuu/bhyve_usb/usr.sbin/bhyve/usb/host-libusb.c Modified: soc2013/syuu/bhyve_usb/usr.sbin/bhyve/Makefile ============================================================================== --- soc2013/syuu/bhyve_usb/usr.sbin/bhyve/Makefile Tue Aug 13 18:51:26 2013 (r255885) +++ soc2013/syuu/bhyve_usb/usr.sbin/bhyve/Makefile Tue Aug 13 19:25:35 2013 (r255886) @@ -21,6 +21,9 @@ .PATH: ${.CURDIR}/usb/gpl SRCS+= desc.c +.PATH: ${.CURDIR}/usb/lgpl +SRCS+= dev-serial.c + NO_MAN= DPADD= ${LIBVMMAPI} ${LIBMD} ${LIBPTHREAD} Modified: soc2013/syuu/bhyve_usb/usr.sbin/bhyve/usb/host-libusb.c ============================================================================== --- soc2013/syuu/bhyve_usb/usr.sbin/bhyve/usb/host-libusb.c Tue Aug 13 18:51:26 2013 (r255885) +++ soc2013/syuu/bhyve_usb/usr.sbin/bhyve/usb/host-libusb.c Tue Aug 13 19:25:35 2013 (r255886) @@ -53,7 +53,6 @@ OBJECT_CHECK(USBHostDevice, (obj), TYPE_USB_HOST_DEVICE) #endif #define USB_HOST_DEVICE(obj) ((struct USBHostDevice *)obj) -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #define trace_usb_host_req_complete(a,b,c,d,e) #define trace_usb_host_iso_start(a,b,c)