summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-17 20:21:09 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-17 20:21:09 +0100
commit0e19f080df49504d78fd6c9a2ce91b8819255818 (patch)
tree523d50d8f87169d66412773ce51090cd19d6d3fc
parente5a623ef44dd07c29ec3e985ac9307fe52898b67 (diff)
Fixed prototypes in pg.h.
-rw-r--r--parsing.c2
-rw-r--r--pg.h3
-rw-r--r--pg.pgc2
3 files changed, 4 insertions, 3 deletions
diff --git a/parsing.c b/parsing.c
index 4dc03cd..7fb426d 100644
--- a/parsing.c
+++ b/parsing.c
@@ -357,7 +357,7 @@ void process() {
struct channel_t *channel = channel_get(chan_i);
int channel_id = pg_channel_get(channel);
pg_users_get(channel_id);
- pg_word_get(channel_id);
+ pg_words_get(channel_id);
printf("Channel %s\n", channel->name);
struct channel_file_t *file = channel->files;
while(file) {
diff --git a/pg.h b/pg.h
index 71a3b7e..95a160c 100644
--- a/pg.h
+++ b/pg.h
@@ -15,6 +15,7 @@ long pg_channel_file_get(int channel_id, struct channel_file_t *file);
void pg_channel_file_set(int channel_id, struct channel_file_t *file, long pos);
void pg_user_set(int channel_id, struct user_t *user);
void pg_users_get(int channel_id);
-void pg_words_set(int channel);
+void pg_word_set(int channel, struct word_t *word);
+void pg_words_get(int channel);
#endif
diff --git a/pg.pgc b/pg.pgc
index 787135a..a2a0957 100644
--- a/pg.pgc
+++ b/pg.pgc
@@ -301,7 +301,7 @@ void pg_word_set(int channel, struct word_t *word) {
EXEC SQL COMMIT;
}
-void pg_word_get(int channel) {
+void pg_words_get(int channel) {
EXEC SQL BEGIN DECLARE SECTION;
int channel_id = channel, id = 0, count;
VARCHAR name[0x400];