Skip to content

Commit

Permalink
Make it compile
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-upadhyay committed Dec 25, 2012
1 parent ed462c6 commit 7e1d691
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ PROGS= makemandb apropos whatis apropos.cgi suggest.cgi
SRCS.makemandb= makemandb.c apropos-utils.c manconf.c
SRCS.apropos= apropos.c apropos-utils.c manconf.c
SRCS.whatis= whatis.c apropos-utils.c manconf.c
SRCS.apropos.cgi= apropos_cgi.c apropos-utils.c cgi-utils.c
SRCS.suggest.cgi= suggest_cgi.c cgi-utils.c apropos-utils.c
SRCS.apropos.cgi= apropos_cgi.c apropos-utils.c cgi-utils.c manconf.c
SRCS.suggest.cgi= suggest_cgi.c cgi-utils.c apropos-utils.c manconf.c
MAN.makemandb= makemandb.8
MAN.apropos= apropos.1
MAN.whatis= whatis.1
Expand Down
2 changes: 1 addition & 1 deletion apropos_cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ main(int argc, char *argv[])
char *qstr = getenv("QUERY_STRING");
char *errmsg;

sqlite3 *db = init_db(MANDB_READONLY);
sqlite3 *db = init_db(MANDB_READONLY, MANCONF);
if (db == NULL) {
printf("Could not open database connection\n");
exit(EXIT_FAILURE);
Expand Down
2 changes: 1 addition & 1 deletion suggest_cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ main(int argc, char **argv)
if ((query = get_param(qstr, "query")) == NULL)
exit(EXIT_FAILURE);

db = init_db(MANDB_READONLY);
db = init_db(MANDB_READONLY, MANCONF);
printf("Content-type:application/json;\n");
query = parse_space(query);
char *suggestions = get_suggestions(db, query);
Expand Down

0 comments on commit 7e1d691

Please sign in to comment.