summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2011-10-30 20:17:51 +0900
committerArnaud Fontaine <arnau@debian.org>2011-10-30 21:12:44 +0900
commite4d0f93a64dbb9b77ee6a32dcf85ce1b65449e9d (patch)
tree0962be3f872d02ff24998e2543b3d0a483791401
parentb2c269400d3138802831e583b5b42fd20846b0ce (diff)
Add missing static qualifiers.
-rw-r--r--dsimple.c6
-rw-r--r--dsimple.h3
-rw-r--r--transSet.c4
3 files changed, 5 insertions, 8 deletions
diff --git a/dsimple.c b/dsimple.c
index af1d052..ab7a87f 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -64,7 +64,7 @@ int screen;
* Get_Display_Name (argc, argv) Look for -display, -d, or host:dpy (obselete)
* If found, remove it from command line. Don't go past a lone -.
*/
-char *Get_Display_Name(int *pargc, char **argv)
+static char *Get_Display_Name(int *pargc, char **argv)
{
int argc = *pargc;
char **pargv = argv+1;
@@ -98,7 +98,7 @@ char *Get_Display_Name(int *pargc, char **argv)
* Open_Display: Routine to open a display with correct error handling.
* Does not require dpy or screen defined on entry.
*/
-Display *Open_Display(char *display_name)
+static Display *Open_Display(char *display_name)
{
Display *d;
@@ -269,7 +269,7 @@ Window Window_With_Name(Display *dpy, Window top, char *name)
* instead of char*
* Written by Daniel Forchheimer 2005
* */
-Window Window_With_Name_Regex_Recurse(Display *dpy, Window top,
+static Window Window_With_Name_Regex_Recurse(Display *dpy, Window top,
regex_t *reg_name)
{
Window *children, dummy;
diff --git a/dsimple.h b/dsimple.h
index 1ff4573..f259fe3 100644
--- a/dsimple.h
+++ b/dsimple.h
@@ -48,8 +48,6 @@ extern int screen; /* The current screen */
#define INIT_NAME program_name=argv[0] /* use this in main to setup
program_name */
-char *Get_Display_Name(int *, char **);
-Display *Open_Display(char *);
void Setup_Display_And_Screen(int *, char **);
void usage(void);
@@ -68,7 +66,6 @@ Window Select_Window(Display *);
Window Get_Window_Under_Cursor(Display *); /*added by Daniel Forchheimer for transset-df*/
Window Window_With_Name(Display *, Window, char *);
Window Window_With_Name_Regex(Display *, Window, char *); /*added by Daniel Forchheimer for transset-df*/
-Window Window_With_Name_Regex_Recurse(Display *, Window, regex_t *); /*added by Daniel Forchheimer for transset-df*/
#ifdef __GNUC__
void Fatal_Error(char *, ...) __attribute__((__noreturn__));
#else
diff --git a/transSet.c b/transSet.c
index fbc6baa..b988ba4 100644
--- a/transSet.c
+++ b/transSet.c
@@ -69,7 +69,7 @@ void usage(void)
#define OPACITY "_NET_WM_WINDOW_OPACITY"
/* returns the highest parent of child that is not the root-window */
-Window get_top_window(Display *dpy,Window child) {
+static Window get_top_window(Display *dpy,Window child) {
Window parent;
Window root;
Window *child_list;
@@ -91,7 +91,7 @@ Window get_top_window(Display *dpy,Window child) {
}
/* returns the actual window */
-Window get_actual_window(Display *dpy)
+static Window get_actual_window(Display *dpy)
{
int i;
Window w;