summaryrefslogtreecommitdiff
path: root/xmodmap.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:23 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:23 +0000
commitdc0f15394719e18bb9b01e70468f4d9908488d35 (patch)
tree7ab8dfcac5f42c5c2951a6007e45a45d53a09537 /xmodmap.c
parente29f1f1ed2128d7382a72ccb1684045fe4bc8183 (diff)
Diffstat (limited to 'xmodmap.c')
-rw-r--r--xmodmap.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/xmodmap.c b/xmodmap.c
index b5ffa00..f86886b 100644
--- a/xmodmap.c
+++ b/xmodmap.c
@@ -26,10 +26,12 @@ other dealings in this Software without prior written authorization
from The Open Group.
*/
+/* $XFree86: xc/programs/xmodmap/xmodmap.c,v 1.7 2001/12/14 20:02:13 dawes Exp $ */
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include "xmodmap.h"
@@ -39,8 +41,8 @@ int min_keycode, max_keycode;
Bool verbose = False;
Bool dontExecute = False;
-void Exit (status)
- int status;
+static void
+Exit(int status)
{
if (dpy) {
XCloseDisplay (dpy);
@@ -66,7 +68,8 @@ static char *help_message[] = {
NULL};
-void usage ()
+static void
+usage(void)
{
char **cpp;
@@ -99,7 +102,8 @@ static char *grammar_message[] = {
NULL };
-void grammar_usage ()
+static void
+grammar_usage(void)
{
char **cpp;
@@ -113,9 +117,8 @@ void grammar_usage ()
int parse_errors = 0;
-main (argc, argv)
- int argc;
- char **argv;
+int
+main(int argc, char *argv[])
{
int i;
char *displayname = NULL;