summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-12-12 10:18:14 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-12-12 10:18:14 +0000
commitabd27e2caa247721897032864e0c0b28e21fb798 (patch)
treef56cfd17863907dbd506205d52630e5e13ef86a6
parentb8b8454bcb2aba9a1e5477763b7841705df55052 (diff)
tests: use atexit, g_atexit has been deprecated in glib master
-rw-r--r--tests/check/elements/souphttpsrc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c
index 7a1b67771..9fc8f7cf9 100644
--- a/tests/check/elements/souphttpsrc.c
+++ b/tests/check/elements/souphttpsrc.c
@@ -23,6 +23,8 @@
# include "config.h"
#endif
+#include <stdlib.h>
+
#include <glib.h>
#include <glib/gprintf.h>
#include <libsoup/soup-address.h>
@@ -454,7 +456,7 @@ souphttpsrc_suite (void)
suite_add_tcase (s, tc_chain);
run_server (&http_port, &https_port);
- g_atexit (stop_server);
+ atexit (stop_server);
tcase_add_test (tc_chain, test_first_buffer_has_offset);
tcase_add_test (tc_chain, test_redirect_yes);
tcase_add_test (tc_chain, test_redirect_no);