diff options
author | Cy Schubert <cy@FreeBSD.org> | 2014-12-20 22:52:39 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2014-12-20 22:52:39 +0000 |
commit | b5e14a1344528861a7016aa2c6b0f2e9630d1526 (patch) | |
tree | f04bed14f7e8aed5c0e9d2f7785175c7951036d3 /libntp/ntp_lineedit.c | |
parent | 2b45e011ca352ce509bc83ae148230aeee0c7e0d (diff) |
Diffstat (limited to 'libntp/ntp_lineedit.c')
-rw-r--r-- | libntp/ntp_lineedit.c | 5 |
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 |