diff options
author | unknown <joerg@mysql.com> | 2005-07-11 15:59:49 +0200 |
---|---|---|
committer | unknown <joerg@mysql.com> | 2005-07-11 15:59:49 +0200 |
commit | abfa27f7c0068ed1efb4703644d8aab29fe61cdf (patch) | |
tree | a75a95439fe9e2155ca9d5217c6138dee1437a49 /cmd-line-utils | |
parent | 61024c424ee9d3d7f20d7151b7e6ef9e2d9d18ec (diff) | |
download | mariadb-git-abfa27f7c0068ed1efb4703644d8aab29fe61cdf.tar.gz |
cmd-line-utils/libedit/chared.c: Fix compile problem caused by use of "uint" which is undefined on QNX.
cmd-line-utils/libedit/chared.c:
Re-apply vva's fix:
cmd-line-utils/libedit/chared.c@1.4, 2004-08-31 17:50:59+05:00, vva@eagle.mysql.r18.ru
discarded using of uint because it's undefined on qnx
Diffstat (limited to 'cmd-line-utils')
-rw-r--r-- | cmd-line-utils/libedit/chared.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-line-utils/libedit/chared.c b/cmd-line-utils/libedit/chared.c index 21fc8bc2c1d..4cb6e00d26e 100644 --- a/cmd-line-utils/libedit/chared.c +++ b/cmd-line-utils/libedit/chared.c @@ -51,13 +51,13 @@ cv_undo(EditLine *el) { c_undo_t *vu = &el->el_chared.c_undo; c_redo_t *r = &el->el_chared.c_redo; - uint size; + int size; /* Save entire line for undo */ size = el->el_line.lastchar - el->el_line.buffer; vu->len = size; vu->cursor = el->el_line.cursor - el->el_line.buffer; - memcpy(vu->buf, el->el_line.buffer, size); + memcpy(vu->buf, el->el_line.buffer, (size_t)size); /* save command info for redo */ r->count = el->el_state.doingarg ? el->el_state.argument : 0; |