summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f113eaf)
raw | patch | inline | side by side (parent: f113eaf)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 2 May 2014 15:27:40 +0000 (17:27 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 2 May 2014 15:27:40 +0000 (17:27 +0200) |
src/tools/sysdb/input.c | patch | blob | history | |
src/tools/sysdb/input.h | patch | blob | history | |
src/tools/sysdb/scanner.l | patch | blob | history |
index b515c4e10931db0c8e599d9820b991d974a6fb6b..8d91048e35c5714fe7522f112aa5e736208b5a85 100644 (file)
--- a/src/tools/sysdb/input.c
+++ b/src/tools/sysdb/input.c
} /* sdb_input_mainloop */
ssize_t
-sdb_input_readline(char *buf, int *n_chars, size_t max_chars)
+sdb_input_readline(char *buf, size_t *n_chars, size_t max_chars)
{
const char *data;
size_t len;
index 40bd7c0c6d869129b0435febc10271a071e1a9de..35b37b800b80f2b6651a43d195beee174bca3c8f 100644 (file)
--- a/src/tools/sysdb/input.h
+++ b/src/tools/sysdb/input.h
* - A negative value in case of an error.
*/
ssize_t
-sdb_input_readline(char *buf, int *n_chars, size_t max_chars);
+sdb_input_readline(char *buf, size_t *n_chars, size_t max_chars);
/*
* sdb_input_exec_query:
index 4d9fea5bc6c1f501371739a40f09a4ebd017b40a..cd465ce67f87be50c0456869053a7c88469e6484 100644 (file)
# undef YY_INPUT
#endif
#define YY_INPUT(buf, result, max_size) \
- sdb_input_readline((buf), &(result), (max_size))
+ sdb_input_readline((buf), (size_t *)&(result), (max_size))
#define APPEND() \
do { \