From 84e0fb3f287864eca3a9322ef364b913f6a260bd Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:41:46 -0500 Subject: Fix some warnings with -Wmissing-prototypes. Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: --- device/cirbuf.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'device/cirbuf.c') diff --git a/device/cirbuf.c b/device/cirbuf.c index a3c9407a..ed09f3d1 100644 --- a/device/cirbuf.c +++ b/device/cirbuf.c @@ -202,31 +202,6 @@ b_to_q( char *cp, return count; } -/* - * Return number of contiguous characters up to a character - * that matches the mask. - */ -int -ndqb( struct cirbuf *cb, - int mask) -{ - char *cp, *lim; - - if (cb->c_cl < cb->c_cf) - lim = cb->c_end; - else - lim = cb->c_cl; - if (mask == 0) - return (lim - cb->c_cf); - cp = cb->c_cf; - while (cp < lim) { - if (*cp & mask) - break; - cp++; - } - return (cp - cb->c_cf); -} - /* * Flush characters from circular buffer. */ -- cgit v1.2.3