[tracker] libtracker-extract: Use proper types for tracker_getline()



commit 8425c00e44e2702612fe76d881439de09ff2ef27
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Apr 29 19:00:25 2010 +0200

    libtracker-extract: Use proper types for tracker_getline()

 src/libtracker-extract/tracker-utils.c |    8 ++++----
 src/libtracker-extract/tracker-utils.h |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-utils.c b/src/libtracker-extract/tracker-utils.c
index 0516971..11600bc 100644
--- a/src/libtracker-extract/tracker-utils.c
+++ b/src/libtracker-extract/tracker-utils.c
@@ -843,18 +843,18 @@ my_igetdelim (gchar  **linebuf,
 	return idx;
 }
 
-gint
+gssize
 tracker_getline (gchar **lineptr,
-                 guint  *n,
+                 gsize  *n,
                  FILE *stream)
 {
 	return my_igetdelim (lineptr, n, '\n', stream);
 }
 
 #else
-gint
+gssize
 tracker_getline (gchar **lineptr,
-                 guint  *n,
+                 gsize  *n,
                  FILE *stream)
 {
 	return getline (lineptr, n, stream);
diff --git a/src/libtracker-extract/tracker-utils.h b/src/libtracker-extract/tracker-utils.h
index 50e7f2a..db2da92 100644
--- a/src/libtracker-extract/tracker-utils.h
+++ b/src/libtracker-extract/tracker-utils.h
@@ -47,8 +47,8 @@ const gchar* tracker_coalesce_strip         (gint         n_values,
 gchar*       tracker_merge_const            (const gchar *delimiter,
                                              gint         n_values,
                                                           ...);
-gint         tracker_getline                (gchar      **lineptr,
-                                             guint       *n,
+gssize       tracker_getline                (gchar      **lineptr,
+                                             gsize       *n,
                                              FILE        *stream);
 
 G_END_DECLS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]