git.samba.org
/
jelmer
/
ctrlproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8762a22
)
Whoops, logic was reversed.
author
Jelmer Vernooij
<jelmer@samba.org>
Wed, 7 Mar 2007 23:13:03 +0000
(
00:13
+0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Wed, 7 Mar 2007 23:13:03 +0000
(
00:13
+0100)
src/help.c
patch
|
blob
|
history
src/help.h
patch
|
blob
|
history
diff --git
a/src/help.c
b/src/help.c
index 3ed543616307966f1c0de5219f2856b8427551b2..9d2a1478288b170d40740396b725f5c1fc88492b 100644
(file)
--- a/
src/help.c
+++ b/
src/help.c
@@
-28,7
+28,7
@@
void help_free(help_t *h)
{
void help_free(help_t *h)
{
-#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION
<
8
+#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION
>=
8
g_mapped_file_free(h->file);
#else
g_free(h->file);
g_mapped_file_free(h->file);
#else
g_free(h->file);
@@
-79,7
+79,7
@@
help_t *help_load_file( const char *helpfile )
h = g_new0 (help_t, 1);
h = g_new0 (help_t, 1);
-#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION
<
8
+#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION
>=
8
h->file = g_mapped_file_new(helpfile, TRUE, &error);
if (h->file != NULL) {
len = g_mapped_file_get_length(h->file);
h->file = g_mapped_file_new(helpfile, TRUE, &error);
if (h->file != NULL) {
len = g_mapped_file_get_length(h->file);
diff --git
a/src/help.h
b/src/help.h
index cb4af51cc5450b936101f3dab3793c49bdb3abb2..8838c20ee6b3acacca4f52c5d89a788653b7f5a2 100644
(file)
--- a/
src/help.h
+++ b/
src/help.h
@@
-28,7
+28,7
@@
typedef struct help
{
typedef struct help
{
-#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION
<
8
+#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION
>=
8
GMappedFile *file;
#else
char *file;
GMappedFile *file;
#else
char *file;