From df0b7f1c341904451c37bca41b02e1b6a791da5a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 19 Mar 2011 00:46:08 +0100 Subject: lib/: Fix prototypes for functions. --- lib/tevent/pytevent.c | 4 +++- lib/util/charset/iconv.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c index 22541bb624f..bf348719d8e 100644 --- a/lib/tevent/pytevent.c +++ b/lib/tevent/pytevent.c @@ -25,6 +25,8 @@ #include #include +void init_tevent(void); + typedef struct { PyObject_HEAD struct tevent_context *ev; @@ -86,7 +88,7 @@ static void py_set_fd_close_fn(struct tevent_fd *fde, /* FIXME */ } -uint16_t py_get_fd_flags(struct tevent_fd *fde) +static uint16_t py_get_fd_flags(struct tevent_fd *fde) { /* FIXME */ return 0; diff --git a/lib/util/charset/iconv.c b/lib/util/charset/iconv.c index cee2d26aa46..e3cdbdfc8ef 100644 --- a/lib/util/charset/iconv.c +++ b/lib/util/charset/iconv.c @@ -128,9 +128,9 @@ bool smb_register_charset(const struct charset_functions *funcs_in) static void lazy_initialize_iconv(void) { - static bool initialized; - #ifdef static_init_charset + static bool initialized = false; + if (!initialized) { static_init_charset; initialized = true; -- cgit v1.2.1