summaryrefslogtreecommitdiff
path: root/tests/testglib.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-20 17:08:57 +0000
committerDan Winship <danw@src.gnome.org>2001-04-20 17:08:57 +0000
commit655d467602853052251c10a24f1b62ed1cf72793 (patch)
tree3df9725e02a85cdccfad16aadbab410306a70761 /tests/testglib.c
parentd7daf598001a5d6d1ef2e63ffafba94a443f639d (diff)
downloadglib-655d467602853052251c10a24f1b62ed1cf72793.tar.gz
Add a check for the Darwin dynamic linker. Use AC_TRY_LINK when checking
* configure.in: Add a check for the Darwin dynamic linker. Use AC_TRY_LINK when checking for "nonposix getpwuid_r" so it notices "no getpwuid_r" correctly. * testglib.c (main): Make template[] bigger to prevent an overrun. Remove an unused variable. Initialize error to NULL. * tests/gio-test.c (main): Add a cast to prevent a warning when size_t is a long. * tests/type-test.c (main): Add an #ifdef to prevent a warning when G_HAVE_GINT64 is defined and G_GINT64_FORMAT isn't.
Diffstat (limited to 'tests/testglib.c')
-rw-r--r--tests/testglib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testglib.c b/tests/testglib.c
index 4617487d6..ec058616d 100644
--- a/tests/testglib.c
+++ b/tests/testglib.c
@@ -394,10 +394,9 @@ main (int argc,
const char hello[] = "Hello, World";
const int hellolen = sizeof (hello) - 1;
int fd;
- char template[10];
+ char template[32];
GError *error;
char *name_used;
- gchar *p;
#ifdef G_OS_WIN32
gchar *glib_dll = g_strdup_printf ("glib-%d.%d.dll",
GLIB_MAJOR_VERSION,
@@ -1213,6 +1212,7 @@ main (int argc,
close (fd);
remove (template);
+ error = NULL;
strcpy (template, "zap" G_DIR_SEPARATOR_S "barXXXXXX");
fd = g_file_open_tmp (template, &name_used, &error);
if (fd != -1)