On Wed, Oct 03, 2007 at 02:15:32PM -0700, Randy Dunlap wrote:
> /* skip the first line */
> - fgets(line, sizeof(line), swaps);
> + if (!fgets(line, sizeof(line), swaps))
> + fprintf (stderr, _("%s: fgets of \"%s\" is empty\n"),
> + progname, PROC_SWAPS);
I think end-users know nothing about fgets(), what about:
if (!fgets(line, sizeof(line), swaps))
fprintf (stderr, _("%s: %s: unexpectied file format\n"),
progname, PROC_SWAPS);
return;
}
Karel
--
Karel Zak <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html