factor code that discards data from abuf strucure into a single
authorratchov <ratchov@openbsd.org>
Thu, 14 Aug 2008 09:39:16 +0000 (09:39 +0000)
committerratchov <ratchov@openbsd.org>
Thu, 14 Aug 2008 09:39:16 +0000 (09:39 +0000)
commitd2641806d983e77450fcd29cf25b15059ef33e85
treea6e5e6ffe067a1542497ec5a6c2bef90f54163a0
parent4b3fbaa6d58a982e33cb68b9c9f7b130d2dafebb
factor code that discards data from abuf strucure into a single
abuf_rdiscard() routine. Similarly add abuf_wcommit() routine for
writing. The purpose is to stop manupulating FIFO pointers in
various places outiside abuf.c, its too error prone.
No behaviour change.

ok jakemsr
usr.bin/aucat/abuf.c
usr.bin/aucat/abuf.h
usr.bin/aucat/aproc.c
usr.bin/aucat/conf.h