summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-07-06 22:48:25 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-06 22:48:25 +0000
commit576dde394a69510f98307f53a93002c91271de24 (patch)
treed75b2214102e38d82600caf5fbb9a36aa6e36fca
parent1d7491be0dcfd8826ef3522da939b89e86ce0cdc (diff)
downloadlibgtop-576dde394a69510f98307f53a93002c91271de24.tar.gz
using g_malloc, g_realloc and g_strdup.
* mountlist.c: using g_malloc, g_realloc and g_strdup.
-rw-r--r--sysdeps/common/mountlist.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sysdeps/common/mountlist.c b/sysdeps/common/mountlist.c
index cfe144e8..c56824be 100644
--- a/sysdeps/common/mountlist.c
+++ b/sysdeps/common/mountlist.c
@@ -34,10 +34,17 @@ void free ();
#include <strings.h>
#endif
+#include <glib.h>
+
+#undef xmalloc
+#undef xrealloc
+#undef xstrdup
+
+#define xmalloc g_malloc
+#define xrealloc g_realloc
+#define xstrdup g_strdup
+
char *strstr ();
-char *xmalloc ();
-char *xrealloc ();
-char *xstrdup ();
void error ();
#ifdef HAVE_SYS_PARAM_H