* fix_last_offset:
* Used when we have two separators in a row.
*/
-static void fix_last_offset(FILE *fp, int32_t off)
+static void fix_last_offset(FILE *const fp, const int32_t off)
{
if (!storing_ptrs())
{
fwrite(&net, 1, sizeof net, fp);
}
else
+ {
Seekpts[Num_pts - 1] = off;
+ }
}
/*
*/
{
if (pos - last_off == 2)
+ {
fix_last_offset(outf, pos);
+ }
last_off = pos;
continue;
}
else if (first)
{
for (nsp = sp; !isalnum(*nsp); nsp++)
- continue;
+ {
+ }
ALLOC(Firstch, Num_pts);
fp = &Firstch[Num_pts - 1];
- if (Iflag && isupper(*nsp))
- fp->first = (char)tolower(*nsp);
- else
- fp->first = *nsp;
+ fp->first =
+ ((Iflag && isupper(*nsp)) ? ((char)tolower(*nsp)) : (*nsp));
fp->pos = Seekpts[Num_pts - 1];
first = false;
}