diff options
Diffstat (limited to 'zup.h')
-rw-r--r-- | zup.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -71,14 +71,14 @@ min(int x, int y) return x > y ? y : x; } -extern int verbose; +extern struct param param; static inline void msg(int level, const char *fmt, ...) { va_list ap; va_start(ap, fmt); - if (verbose >= level) { + if (param.verbose >= level) { fprintf(stderr, "DEBUG [%d]: ", level); vfprintf(stderr, fmt, ap); } @@ -105,13 +105,13 @@ int open_tty(const char *port, int baud); int -run_commands(int fd, const struct param *param, int ncmd, char **cmds); +run_commands(int fd, int ncmd, char **cmds); int -run_line(int fd, struct param *param, char *line, const char *sep); +run_line(int fd, char *line, const char *sep); void -repl(int fd, struct param *param); +repl(int fd); void print_error(int error); |