{
enum option_source source; /* Option origin */
char const *name; /* File or variable name */
- size_t line; /* Number of input line if source is OPTS_FILE */
+ intmax_t line; /* Number of input line if source is OPTS_FILE */
struct option_locus *prev; /* Previous occurrence of the option of same
class */
};
struct tar_args *args = state->input;
if (args->loc->source == OPTS_FILE)
{
- error (0, 0, _("%s:%lu: unrecognized option"), args->loc->name,
- (unsigned long) args->loc->line);
+ error (0, 0, _("%s:%jd: unrecognized option"), args->loc->name,
+ args->loc->line);
set_exit_status (TAREXIT_FAILURE);
}
return ARGP_ERR_UNKNOWN;
struct /* File, if type == NELT_FILE */
{
const char *name;/* File name */
- size_t line; /* Input line number */
+ intmax_t line; /* Input line number */
int term; /* File name terminator in the list */
bool verbatim; /* Verbatim handling of file names: no white-space
trimming, no option processing */
case ARGP_KEY_ERROR:
if (args->loc->source == OPTS_FILE)
- error (0, 0, _("%s:%lu: location of the error"), args->loc->name,
- (unsigned long) args->loc->line);
+ error (0, 0, _("%s:%jd: location of the error"), args->loc->name,
+ args->loc->line);
else if (args->loc->source == OPTS_ENVIRON)
error (0, 0, _("error parsing %s"), args->loc->name);
exit (EX_USAGE);