From owner-freebsd-hackers Mon May 3 16: 7:49 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id B0F8314E6E for ; Mon, 3 May 1999 16:07:38 -0700 (PDT) (envelope-from hibma@skylink.it) Received: from heidi.plazza.it (va-157.skylink.it [194.185.55.157]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id BAA02238 for ; Tue, 4 May 1999 01:08:48 +0200 Received: from localhost (localhost.plazza.it [127.0.0.1]) by heidi.plazza.it (8.8.8/8.8.5) with SMTP id XAA03997 for ; Mon, 3 May 1999 23:20:36 +0200 (CEST) Date: Mon, 3 May 1999 23:20:35 +0200 (CEST) From: Nick Hibma X-Sender: n_hibma@heidi.plazza.it Reply-To: Nick Hibma To: FreeBSD hackers mailing list Subject: names of globale variables Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Isn't the choice of the variables names below a bit odd? It crashed my machine three times because of a typo (buf instead of buffer) in the USB Communications Class Driver. Wouldn't some more elaborate names be more appropriate to avoid these problems? sys/buf.h: extern int nbuf; /* The number of buffer headers */ extern struct buf *buf; /* The buffer headers. */ extern char *buffers; /* The buffer contents. */ extern int bufpages; /* Number of memory pages in the buffer */ Nick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message