From 26a32c06ee78d9132b304c0891e4aa357aa1d8c5 Mon Sep 17 00:00:00 2001 From: Christian Hammond Date: Fri, 21 Apr 2006 21:36:21 +0000 Subject: [PATCH] Patch by jensgr to fix some C99 usage in the tests code. --- ChangeLog | 6 ++++++ NEWS | 1 + tests/test-server-info.c | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 806e2bb..2c4b1b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Apr 21 14:35:30 PDT 2006 Christian Hammond + + * tests/test-server-info.c: + * NEWS: + - Patch by jensgr to fix some C99 usage in the tests code. + Fri Apr 21 14:21:47 PDT 2006 Christian Hammond * tools/Makefile.am: diff --git a/NEWS b/NEWS index 8932e04..ebc1efb 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ version 0.3.3: to add -v, --version, -h, and --hint options, and to rename -T, --type to -c, --category. This also fixes assertions when calling notify-send "". (Bug #41) + * Patch by jensgr to fix some C99 usage. (Bug #44) version 0.3.2 (23-January-2006): * Added back notify_get_server_info() and notify_get_server_caps(). diff --git a/tests/test-server-info.c b/tests/test-server-info.c index 643cf33..537806e 100644 --- a/tests/test-server-info.c +++ b/tests/test-server-info.c @@ -26,10 +26,11 @@ int main(int argc, char **argv) { - notify_init("TestCaps"); GList *l, *caps; char *name, *vendor, *version, *spec_version; + notify_init("TestCaps"); + if (!notify_get_server_info(&name, &vendor, &version, &spec_version)) { fprintf(stderr, "Failed to receive server info.\n");