diff options
author | Ted Gould <ted@gould.cx> | 2010-06-30 11:29:02 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-30 11:29:02 -0500 |
commit | 94516efaf61bccb441d4c49bb94e4ae5cd86e9ee (patch) | |
tree | 5f25da8f42819293222225d33a35cafba45a2ee8 | |
parent | b5238c818f7ce62d0e9f13b25a9a9ffe2b4621f7 (diff) | |
parent | a5c0bf22608cd393b6a7e1667ba14777339075be (diff) | |
download | libdbusmenu-94516efaf61bccb441d4c49bb94e4ae5cd86e9ee.tar.gz libdbusmenu-94516efaf61bccb441d4c49bb94e4ae5cd86e9ee.tar.bz2 libdbusmenu-94516efaf61bccb441d4c49bb94e4ae5cd86e9ee.zip |
Sync to trunk
-rw-r--r-- | tests/test-json-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-json-client.c b/tests/test-json-client.c index 73d64b0..f9da55e 100644 --- a/tests/test-json-client.c +++ b/tests/test-json-client.c @@ -28,7 +28,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>. GMainLoop * mainloop = NULL; int -main (int argv, char ** argc) +main (int argc, char ** argv) { g_type_init(); g_debug("Wait for friends"); @@ -58,13 +58,13 @@ main (int argv, char ** argc) g_debug("Initing"); - gchar * command = g_strdup_printf("%s --dbus-name=org.dbusmenu.test --dbus-object=/org/test", argc[1]); + gchar * command = g_strdup_printf("%s --dbus-name=org.dbusmenu.test --dbus-object=/org/test", argv[1]); g_debug("Executing: %s", command); gchar * output; g_spawn_command_line_sync(command, &output, NULL, NULL, NULL); - GFile * ofile = g_file_new_for_commandline_arg(argc[2]); + GFile * ofile = g_file_new_for_commandline_arg(argv[2]); if (ofile != NULL) { g_file_replace_contents(ofile, output, g_utf8_strlen(output, -1), NULL, FALSE, 0, NULL, NULL, NULL); } |