summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-08 11:06:16 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-08 11:06:16 +0200
commite559567111b9b5dd46cf5e3278e71cc0b2423cfa (patch)
treea1c7809f68da0846622feabbecb80ff346ad850a
parent4d5114932950c5ac16e44cdb77cf0a175b4c1d64 (diff)
Rename sate parameter into state.
* tarfs.c (tarfs_parse_opts): Rename sate parameter into state.
-rw-r--r--ChangeLog6
-rw-r--r--tarfs.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8aa4197da..cb70761c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2013-07-05 Cyril Roelandt <tipecaml@gmail.com>
+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.
diff --git a/tarfs.c b/tarfs.c
index 4a082643d..a0e769240 100644
--- a/tarfs.c
+++ b/tarfs.c
@@ -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))
- argp_error (sate, "No archive specified.");
+ argp_error (state, "No archive specified.");
}
return 0;