From 2d7eeb7fc0fedc73e9fdb9ef46ee1df98d0f729e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 25 Nov 2013 09:02:43 +0100 Subject: minor fixes --- eo_tokenizer.h | 2 +- eo_tokenizer.rl | 4 ++-- main.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eo_tokenizer.h b/eo_tokenizer.h index 3186999..5332ad6 100644 --- a/eo_tokenizer.h +++ b/eo_tokenizer.h @@ -127,7 +127,7 @@ typedef struct _eo_tokenizer } Eo_Tokenizer; -Eo_Tokenizer* eo_tokenizer_get(); +Eo_Tokenizer* eo_tokenizer_get(void); Eina_Bool eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source); diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index a01ed32..355c524 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -52,7 +52,7 @@ _eo_tokenizer_token_get(Eo_Tokenizer *toknz, char *p) action save_fpc { toknz->saved.tok = fpc; - DBG("save[%d] %d", toknz->cs, fpc); + DBG("save[%d] %p", toknz->cs, fpc); } action show_comment { @@ -197,7 +197,7 @@ eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source) } Eo_Tokenizer* -eo_tokenizer_get() +eo_tokenizer_get(void) { Eo_Tokenizer *toknz = calloc(1, sizeof(Eo_Tokenizer)); if (!toknz) return NULL; diff --git a/main.c b/main.c index 2b420f2..12ba6ee 100644 --- a/main.c +++ b/main.c @@ -31,7 +31,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - toknz = eo_tokenizer_get(fpath); + toknz = eo_tokenizer_get(); if (!toknz) { ERR("can't create eo_tokenizer"); -- cgit v1.1-2-g2b99