summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-10-18 15:41:26 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-10-18 15:41:26 +0000
commitdca354f9c591c7a1912ea471034e9f42be6527ad (patch)
tree211a0be61ca049b316b0dc8afd4d1ef7b36d3c6e
parent2587b0c38cf554042188ed97e7687c300f8021bb (diff)
The return value of this function isn't used.
ok anton@ tb@
-rw-r--r--bin/ksh/history.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index 44b1c1784da..f4ec9f13c15 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.71 2017/09/07 19:08:32 jca Exp $ */
+/* $OpenBSD: history.c,v 1.72 2017/10/18 15:41:25 jca Exp $ */
/*
* command history
@@ -29,7 +29,7 @@
static void history_write(void);
static FILE *history_open(void);
-static int history_load(Source *);
+static void history_load(Source *);
static void history_close(void);
static int hist_execute(char *);
@@ -736,7 +736,7 @@ history_close(void)
}
}
-static int
+static void
history_load(Source *s)
{
char *p, encoded[LINE + 1], line[LINE + 1];
@@ -750,7 +750,7 @@ history_load(Source *s)
break;
if ((p = strchr(encoded, '\n')) == NULL) {
bi_errorf("history file is corrupt");
- return 1;
+ return;
}
*p = '\0';
s->line = line_co;
@@ -760,8 +760,6 @@ history_load(Source *s)
}
history_write();
-
- return 0;
}
#define HMAGIC1 0xab