summaryrefslogtreecommitdiff
path: root/src/main.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/main.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/main.c')
-rw-r--r--src/main.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main.c b/src/main.c
index 651d9a9..05e09f6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -163,19 +163,19 @@ str_comp (char *s1, char *s2, int len)
return 1;
}
-void
+static void
sighandler (int signum)
{
kill_signalled++;
}
-void
+static void
hup_handler (int signum)
{
hup_signalled++;
}
-void
+static void
alrm_handler (int signum)
{
alarm_signalled++;
@@ -184,7 +184,7 @@ alrm_handler (int signum)
/* Check for child processes that have quit but haven't been
acknowledged yet. Update their structure. */
void
-check_child_procs ()
+check_child_procs (void)
{
rp_child_info *cur;
int pid, status;
@@ -221,7 +221,7 @@ chld_handler (int signum)
errno = serrno;
}
-int
+static int
handler (Display *d, XErrorEvent *e)
{
char error_msg[100];
@@ -280,8 +280,8 @@ set_sig_handler (int sig, void (*action)(int))
}
}
-void
-print_version ()
+static void
+print_version (void)
{
printf ("%s %s (built %s %s)\n", PACKAGE, VERSION, __DATE__, __TIME__);
printf ("Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Shawn Betts\n\n");
@@ -289,8 +289,8 @@ print_version ()
exit (EXIT_SUCCESS);
}
-void
-print_help ()
+static void
+print_help (void)
{
printf ("Help for %s %s\n\n", PACKAGE, VERSION);
printf ("-h, --help Display this help screen\n");
@@ -425,7 +425,7 @@ read_startup_files (char *alt_rcfile)
/* Odd that we spend so much code on making sure the silly welcome
message is correct. Oh well... */
static void
-show_welcome_message ()
+show_welcome_message (void)
{
rp_action *help_action;
char *prefix, *help;
@@ -463,7 +463,7 @@ show_welcome_message ()
}
static void
-init_defaults ()
+init_defaults (void)
{
defaults.top_kmap = xstrdup(TOP_KEYMAP);
@@ -722,7 +722,7 @@ free_screen (rp_screen *s)
}
void
-clean_up ()
+clean_up (void)
{
int i;