]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/execute.c
ANSI function declarations, ie () -> (void)
[chaz/openbox] / openbox / actions / execute.c
index 8d45aad60506f9687aaf578acc387235a4664a29..02de01549d9ccac0a88a91c58d4588c6ff78dc90 100644 (file)
@@ -23,7 +23,7 @@ static gboolean i_input_func(guint initial_state,
 static void     i_cancel_func(gpointer options);
 */
 
-void action_execute_startup()
+void action_execute_startup(void)
 {
     actions_register("Execute",
                      setup_func,
@@ -39,7 +39,9 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
 
     o = g_new0(Options, 1);
 
-    if ((n = parse_find_node("execute", node))) {
+    if ((n = parse_find_node("command", node)) ||
+        (n = parse_find_node("execute", node)))
+    {
         gchar *s = parse_string(doc, n);
         o->cmd = parse_expand_tilde(s);
         g_free(s);
This page took 0.020095 seconds and 4 git commands to generate.