aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-06-30 12:26:43 -0500
committerTed Gould <ted@gould.cx>2010-06-30 12:26:43 -0500
commitb9ec76e3862c882d913efca81e20228e0d6313af (patch)
tree63a48012460ccf40d88417ad412f1bd8958eeb3d
parentb2e5fa7dd54d2d73201624b1411bf7387fde0157 (diff)
parent2fe6b55f291ed7bb3e1764c70259becf7d203b1a (diff)
downloadlibdbusmenu-b9ec76e3862c882d913efca81e20228e0d6313af.tar.gz
libdbusmenu-b9ec76e3862c882d913efca81e20228e0d6313af.tar.bz2
libdbusmenu-b9ec76e3862c882d913efca81e20228e0d6313af.zip
Sync to trunk
-rw-r--r--tests/test-json-client.c6
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);
}