diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2004-08-31 17:51:02 +0500 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2004-08-31 17:51:02 +0500 |
commit | 51fce2d24710fb25a2da30eab7fa2be78430b3fc (patch) | |
tree | e11babeff7daf86be80528857b6f06d76c0217e1 /cmd-line-utils | |
parent | 7728843c66bcd2cc15f0b9b7bf6b50a3f1d01d22 (diff) | |
download | mariadb-git-51fce2d24710fb25a2da30eab7fa2be78430b3fc.tar.gz |
fixed compiling bug of libedit on qnx
discarded using of uint in cmd-line-utils/libedit/chared.c
because it's undefined on qnx
cmd-line-utils/libedit/chared.c:
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 559e714d9fd..62a407e66a8 100644 --- a/cmd-line-utils/libedit/chared.c +++ b/cmd-line-utils/libedit/chared.c @@ -62,13 +62,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; |