aboutsummaryrefslogtreecommitdiff
path: root/tests/test-json-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-06-30 11:13:47 -0500
committerTed Gould <ted@gould.cx>2010-06-30 11:13:47 -0500
commitfa0aae428c6859bb4aab12368ad92cf9d8274d3f (patch)
tree90775548438f4ee44ac6d4200b89f3fc7f86c907 /tests/test-json-client.c
parent3b991803b808c158edb3062d2b962cdf9d8ed2d2 (diff)
downloadlibdbusmenu-fa0aae428c6859bb4aab12368ad92cf9d8274d3f.tar.gz
libdbusmenu-fa0aae428c6859bb4aab12368ad92cf9d8274d3f.tar.bz2
libdbusmenu-fa0aae428c6859bb4aab12368ad92cf9d8274d3f.zip
Flipping argv/c from review
Diffstat (limited to 'tests/test-json-client.c')
-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);
}