[tracker] Glibbification of INT_MAX
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Glibbification of INT_MAX
- Date: Thu, 6 Aug 2009 10:00:35 +0000 (UTC)
commit 83504b1183d90cc35de0f3ae671b872cd051bfb7
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Aug 6 11:59:58 2009 +0200
Glibbification of INT_MAX
src/libstemmer/header.h | 4 ++--
src/tracker-utils/tracker-import.c | 2 +-
src/tracker-utils/tracker-sparql.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libstemmer/header.h b/src/libstemmer/header.h
index 05d9571..ad66a31 100644
--- a/src/libstemmer/header.h
+++ b/src/libstemmer/header.h
@@ -16,8 +16,8 @@
#include "api.h"
-#define MAXINT INT_MAX
-#define MININT INT_MIN
+#define MAXINT G_MAXINT
+#define MININT G_MININT
#define HEAD 2*sizeof(int)
diff --git a/src/tracker-utils/tracker-import.c b/src/tracker-utils/tracker-import.c
index 0507bec..f080877 100644
--- a/src/tracker-utils/tracker-import.c
+++ b/src/tracker-utils/tracker-import.c
@@ -80,7 +80,7 @@ main (int argc, char **argv)
g_option_context_free (context);
- client = tracker_connect (FALSE, INT_MAX);
+ client = tracker_connect (FALSE, G_MAXINT);
if (!client) {
g_printerr ("%s\n",
diff --git a/src/tracker-utils/tracker-sparql.c b/src/tracker-utils/tracker-sparql.c
index be8054c..a6134fa 100644
--- a/src/tracker-utils/tracker-sparql.c
+++ b/src/tracker-utils/tracker-sparql.c
@@ -113,7 +113,7 @@ main (int argc, char **argv)
g_option_context_free (context);
- client = tracker_connect (FALSE, INT_MAX);
+ client = tracker_connect (FALSE, G_MAXINT);
if (!client) {
g_printerr ("%s\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]