summaryrefslogtreecommitdiff
path: root/libntp/ntp_lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/ntp_lineedit.c')
-rw-r--r--libntp/ntp_lineedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libntp/ntp_lineedit.c b/libntp/ntp_lineedit.c
index 55fdf0430ee8..c5aad3108614 100644
--- a/libntp/ntp_lineedit.c
+++ b/libntp/ntp_lineedit.c
@@ -93,8 +93,7 @@ ntp_readline_init(
if (NULL == ntp_hist) {
- fprintf(stderr, "history_init(): %s\n",
- strerror(errno));
+ mfprintf(stderr, "history_init(): %m\n");
fflush(stderr);
el_end(ntp_el);
@@ -103,7 +102,7 @@ ntp_readline_init(
success = 0;
} else {
- memset(&hev, 0, sizeof(hev));
+ ZERO(hev);
#ifdef H_SETSIZE
history(ntp_hist, &hev, H_SETSIZE, 128);
#endif