diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-06-08 20:11:21 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-06-08 20:11:21 +0000 |
commit | 54848b89d52e23c614977834433a6893c1a1c3cb (patch) | |
tree | 3180a3c84fca1ecc70fd2bad036715611cf99880 /src/surface/x.c | |
parent | 0fff9e5d0e6519b41d4164daf90379a8e51b5b15 (diff) | |
download | libnsfb-54848b89d52e23c614977834433a6893c1a1c3cb.tar.gz libnsfb-54848b89d52e23c614977834433a6893c1a1c3cb.tar.bz2 |
Fix warnings which occour with gcc 4.5
svn path=/trunk/libnsfb/; revision=10569
Diffstat (limited to 'src/surface/x.c')
-rw-r--r-- | src/surface/x.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/surface/x.c b/src/surface/x.c index 96ec69f..2b8d3bf 100644 --- a/src/surface/x.c +++ b/src/surface/x.c @@ -7,6 +7,7 @@ */ #define _XOPEN_SOURCE 500 +#define NEED_HINTS_ALLOC #include <stdbool.h> #include <stdlib.h> @@ -34,13 +35,13 @@ #include "cursor.h" #if defined(NEED_HINTS_ALLOC) -xcb_size_hints_t * +static xcb_size_hints_t * xcb_alloc_size_hints(void) { return calloc(1, sizeof(xcb_size_hints_t)); } -void +static void xcb_free_size_hints(xcb_size_hints_t *hints) { free(hints); |