Change bufsz to be in-out instead of in, and therefore int * instead of
int, and use that instead of global msg_count. There are only 3 call
sites that use msg_count so it wouldn't take much effort to remove use of
it. Of course, all call sites would have to change to provide an int *
instead of an int. Some now pass constants.
Change bufsz to be in-out instead of in, and therefore int * instead of
int, and use that instead of global msg_count. There are only 3 call
sites that use msg_count so it wouldn't take much effort to remove use of
it. Of course, all call sites would have to change to provide an int *
instead of an int. Some now pass constants.