summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-05-24 02:25:22 +0000
committersabetts <sabetts>2006-05-24 02:25:22 +0000
commit4fbb5009496ef087a9c3c96d5bc1c28f23502005 (patch)
tree309524c9fed43c6fd8618f09504f5eb050bff8df /src/actions.c
parent223a2ab205969ea090d5c80bb2a430c0e51b75ae (diff)
downloadratpoison-4fbb5009496ef087a9c3c96d5bc1c28f23502005.zip
* src/xinerama.c (free_xinerama): take void arguments. prototype updated.
(init_xinerama): likewise * src/window.c (init_window_stuff): take void arguments. prototype updated. (free_window_stuff): likewise * src/split.c (remove_all_splits): take void arguments. prototype updated. (current_frame): likewise (init_frame_lists): likewise (find_last_frame): likewise (current_window): likewise (remove_all_splits): likewise (hide_frame_indicator): likewise (show_frame_indicator): likewise * src/main.c (check_child_procs): take void arguments. prototype updated. (clean_up): likewise * src/number.c (numset_new): take void arguments. prototype updated. * src/manage.c (clear_unmanaged_list): take void arguments. prototype updated. (list_unmanaged_windows): likewise (ungrab_keys_all_wins): likewise (grab_keys_all_wins): likewise (current_screen): likewise (unhide_all_windows): likewise * src/main.c (sighandler): static function (hup_handler): likewise (alrm_handler): likewise (handler): likewise (print_version): likewise (print_help): likewise (show_welcome_message): take void arguments (init_defaults): likewise * src/input.c (ring_bell): take void arguments. prototype updated (update_modifier_map): likewise * src/history.c (get_history_filename): take void arguments (history_load): take void arguments. prototype updated (history_save): likewise (history_reset): likewise (history_previous): likewise (history_next): likewise (history_list_items): likewise * src/group.c (group_in_list): static function (init_groups): take void arguments. prototype updated (free_groups): likewise (group_next_group): likewise (group_prev_group): likewise * src/globals.c (x_export_selection): take void arguments (get_cut_buffer): likewise (get_primary_selection): likewise (get_selection): take void arguments. protype updated. (init_globals): likewise * src/events.c (selection_clear): take void arguments (handle_signals): likewise (listen_for_events): take void argumens. prototype updated * src/bar.c (reset_alarm): take void arguments (show_last_message): take void arguments. prototype updated. (free_bar): likewise * src/actions.c (init_set_vars): static function. take void arguments (clear_frame_redos): take void arguments (pop_frame_undo): likewise (pop_frame_redo): likewise (keymap_new): static function (parse_keydesc): likewise (trivial_completions): likewise (keymap_completions): likewise (window_completions): likewise (group_completions): likewise (colon_completions): likewise (exec_completions): likewise (hook_completions): likewise (var_completions): likewise (update_all_gcs): take void arguments (grab_rat): likewise (ungrab_rat): likewise (init_user_commands): take void arguments. prototype updated. (free_keymaps): likewise (free_aliases): likewise
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/actions.c b/src/actions.c
index 9c097db..3674d28 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -92,8 +92,8 @@ add_set_var (char *name, cmdret * (*fn)(struct cmdarg **), int nargs, ...)
list_add (&var->node, &set_vars);
}
-void
-init_set_vars()
+static void
+init_set_vars(void)
{
add_set_var ("resizeunit", set_resizeunit, 1, "", arg_NUMBER);
add_set_var ("maxundos", set_maxundos, 1, "", arg_NUMBER);
@@ -153,7 +153,7 @@ add_command (char *name, cmdret * (*fn)(int, struct cmdarg **), int nargs, int i
}
void
-init_user_commands()
+init_user_commands(void)
{
/*@begin (tag required for genrpbindings) */
add_command ("abort", cmd_abort, 0, 0, 0);
@@ -365,7 +365,7 @@ static char* fdump (rp_screen *screen);
/* Delete all entries in the redo list. */
static void
-clear_frame_redos ()
+clear_frame_redos (void)
{
rp_frame_undo *cur;
struct list_head *tmp, *iter;
@@ -428,14 +428,14 @@ pop_frame_list (struct list_head *undo_list, struct list_head *redo_list)
/* Pop the head of the frame undo list off and put it in the redo list. */
static rp_frame_undo *
-pop_frame_undo ()
+pop_frame_undo (void)
{
return pop_frame_list (&rp_frame_undos, &rp_frame_redos);
}
/* Pop the head of the frame redo list off and put it in the undo list. */
static rp_frame_undo *
-pop_frame_redo ()
+pop_frame_redo (void)
{
return pop_frame_list (&rp_frame_redos, &rp_frame_undos);
}
@@ -566,7 +566,7 @@ remove_keybinding (KeySym keysym, unsigned int state, rp_keymap *map)
return 0;
}
-rp_keymap *
+static rp_keymap *
keymap_new (char *name)
{
rp_keymap *map;
@@ -789,7 +789,7 @@ keymap_free (rp_keymap *map)
}
void
-free_keymaps ()
+free_keymaps (void)
{
rp_keymap *cur;
struct list_head *tmp, *iter;
@@ -802,7 +802,7 @@ free_keymaps ()
}
void
-free_aliases ()
+free_aliases (void)
{
int i;
@@ -833,7 +833,7 @@ static int string_to_keysym (char *str)
}
/* Parse a key description. 's' is, naturally, the key description. */
-cmdret *
+static cmdret *
parse_keydesc (char *s, struct rp_key *key)
{
char *token, *next_token, *keydesc;
@@ -1183,7 +1183,7 @@ string_to_window_number (char *str)
return *s ? -1 : i;
}
-struct list_head *
+static struct list_head *
trivial_completions (char* str)
{
struct list_head *list;
@@ -1195,7 +1195,7 @@ trivial_completions (char* str)
return list;
}
-struct list_head *
+static struct list_head *
keymap_completions (char* str)
{
rp_keymap *cur;
@@ -1217,7 +1217,7 @@ keymap_completions (char* str)
return list;
}
-struct list_head *
+static struct list_head *
window_completions (char* str)
{
rp_window_elem *cur;
@@ -1467,7 +1467,7 @@ read_keydesc (struct argspec *spec, struct sbuf *s, struct cmdarg **arg)
return cmdret_new (RET_SUCCESS, NULL);
}
-struct list_head *
+static struct list_head *
group_completions (char *str)
{
struct list_head *list;
@@ -1500,7 +1500,7 @@ group_completions (char *str)
return list;
}
-struct list_head *
+static struct list_head *
colon_completions (char* str)
{
int i;
@@ -1543,7 +1543,7 @@ read_command (struct argspec *spec, struct sbuf *s, struct cmdarg **arg)
return read_string (spec, s, colon_completions, arg);
}
-struct list_head *
+static struct list_head *
exec_completions (char *str)
{
size_t n = 256;
@@ -1885,7 +1885,7 @@ read_group (struct argspec *spec, struct sbuf *s, struct cmdarg **arg)
return cmdret_new (RET_SUCCESS, NULL);
}
-struct list_head *
+static struct list_head *
hook_completions (char* str)
{
struct list_head *list;
@@ -1953,7 +1953,7 @@ find_variable (char *str)
return NULL;
}
-struct list_head *
+static struct list_head *
var_completions (char *str)
{
struct list_head *list;
@@ -3434,7 +3434,7 @@ update_gc (rp_screen *s)
}
static void
-update_all_gcs ()
+update_all_gcs (void)
{
int i;
@@ -4734,7 +4734,7 @@ cmd_gdelete (int interactive, struct cmdarg **args)
}
static void
-grab_rat ()
+grab_rat (void)
{
XGrabPointer (dpy, current_screen()->root, True, 0,
GrabModeAsync, GrabModeAsync,
@@ -4742,7 +4742,7 @@ grab_rat ()
}
static void
-ungrab_rat ()
+ungrab_rat (void)
{
XUngrabPointer (dpy, CurrentTime);
}