diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | tarfs.c | 4 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,12 @@ +2013-07-08 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * tarfs.c (tarfs_parse_opts): Rename sate parameter into state. + +2013-07-05 Cyril Roelandt <tipecaml@gmail.com> + + * tarfs.c (tarfs_parse_opts): Gracefully handle the errors using + argp_error instead of error. + 2006-03-08 Ben Asselstine <benasselstine@gmail.com> * tar.c (tar_header2stat): Correctly setting `st_blocks' of ST. @@ -175,7 +175,7 @@ read_from_file (struct node *node, off_t offset, size_t howmuch, /* Argp options parser. */ error_t -tarfs_parse_opts (int key, char *arg, struct argp_state *sate) +tarfs_parse_opts (int key, char *arg, struct argp_state *state) { switch (key) { @@ -211,7 +211,7 @@ tarfs_parse_opts (int key, char *arg, struct argp_state *sate) case ARGP_KEY_ARG: tarfs_options.file_name = strdup (arg); if (!tarfs_options.file_name || !strlen (tarfs_options.file_name)) - error (1, 1, "No archive specified."); + argp_error (state, "No archive specified."); } return 0; |