Date: Mon, 3 May 1999 23:20:35 +0200 (CEST) From: Nick Hibma <hibma@skylink.it> To: FreeBSD hackers mailing list <hackers@freebsd.org> Subject: names of globale variables Message-ID: <Pine.BSF.3.96.990503231631.3991A-100000@heidi.plazza.it>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990503231631.3991A-100000>