summaryrefslogtreecommitdiff
path: root/lib/fmt.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-05 02:09:58 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-05 02:09:58 +0100
commit45f9258c7fc11e145b5197a076bedf935ace9249 (patch)
tree728decff25091a70bb7fe963d828910bdb8ad2ed /lib/fmt.c
parent62d27d872769ebcd79a931fa07b1128576e65e65 (diff)
errno: replace EIO with ENOENT
Diffstat (limited to 'lib/fmt.c')
-rw-r--r--lib/fmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fmt.c b/lib/fmt.c
index f180606..58186f8 100644
--- a/lib/fmt.c
+++ b/lib/fmt.c
@@ -409,7 +409,7 @@ fmt_sprintf_state_consume(struct fmt_sprintf_state *state)
c = fmt_consume(&state->format);
if (c == '\0') {
- return EIO;
+ return ENOENT;
}
if (c != '%') {
@@ -1091,7 +1091,7 @@ fmt_sscanf_state_consume(struct fmt_sscanf_state *state)
c = fmt_consume(&state->format);
if (c == '\0') {
- return EIO;
+ return ENOENT;
}
if (c != '%') {