ndqb(struct clist *clp, int flag)
{
int count = 0;
- register int i;
- register int cc;
+ int i;
+ int cc;
if ((cc = clp->c_cc) == 0)
goto out;
int
putc(int c, struct clist *clp)
{
- register int i;
+ int i;
if (clp->c_cc == 0) {
if (!clp->c_cs) {
clrbits(u_char *cp, int off, int len)
{
int sby, sbi, eby, ebi;
- register int i;
+ int i;
u_char mask;
if(len==1) {
cp[sby++] &= mask;
mask = (1<<ebi) - 1;
- cp[eby] &= ~mask;
+ /* handle remainder bits, if any, for a non-0 ebi value */
+ if (mask)
+ cp[eby] &= ~mask;
for (i = sby; i < eby; i++)
cp[i] = 0x00;