`for (buf_T *b = firstbuf; b; b = b->next)` here and above.