Code

sysdb: Hide implementation details in the "input" module.
[sysdb.git] / src / tools / sysdb / main.c
index 9b575cc825746c47548b87968090c65c0d77b6b2..bc34a480f74ef7ebc9100a91a877aea97f6f2163 100644 (file)
@@ -78,8 +78,6 @@
 #      define DEFAULT_SOCKET "unix:"LOCALSTATEDIR"/run/sysdbd.sock"
 #endif
 
-extern int yylex(void);
-
 static void
 exit_usage(char *name, int status)
 {
@@ -242,7 +240,7 @@ main(int argc, char **argv)
 
        input.input = sdb_strbuf_create(2048);
        sdb_input_init(&input);
-       yylex();
+       sdb_input_mainloop();
 
        if (hist_file[0] != '\0') {
                errno = 0;