From owner-freebsd-doc Sun Jun 30 15:30: 9 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FC3C37B405 for ; Sun, 30 Jun 2002 15:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A04D843E09 for ; Sun, 30 Jun 2002 15:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5UMU3JU053535 for ; Sun, 30 Jun 2002 15:30:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5UMU38V053533; Sun, 30 Jun 2002 15:30:03 -0700 (PDT) Date: Sun, 30 Jun 2002 15:30:03 -0700 (PDT) Message-Id: <200206302230.g5UMU38V053533@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Hye-Shik Chang Subject: Re: docs/40038: src/share/man/man4/ifmib.4 : syntax error on example code Reply-To: Hye-Shik Chang Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/40038; it has been noted by GNATS. From: Hye-Shik Chang To: Hye-Shik Chang Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: docs/40038: src/share/man/man4/ifmib.4 : syntax error on example code Date: Mon, 1 Jul 2002 07:21:50 +0900 > --- ifmib.4.orig Mon Jul 1 01:23:48 2002 > +++ ifmib.4 Mon Jul 1 01:26:46 2002 > @@ -101,6 +101,7 @@ > get_ifmib_general(int row, struct ifmibdata *ifmd) > { > int name[6]; > + int len = sizeof *ifmd; > > name[0] = CTL_NET; > name[1] = PF_LINK; Oh. sorry, len's type must be changed to size_t. -- Hye-Shik Chang Yonsei University, Seoul ^D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message