Skip to content

Commit 709105c

Browse files
committed
add missing static qualifier
these functions and variables are not used outside the translation unit, so there's little sense in not marking them as static.
1 parent fd48b9d commit 709105c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

herbe.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#define EXIT_FAIL 1
1616
#define EXIT_DISMISS 2
1717

18-
Display *display;
19-
Window window;
20-
int exit_code = EXIT_DISMISS;
18+
static Display *display;
19+
static Window window;
20+
static int exit_code = EXIT_DISMISS;
2121

2222
static void die(const char *format, ...)
2323
{
@@ -29,7 +29,7 @@ static void die(const char *format, ...)
2929
exit(EXIT_FAIL);
3030
}
3131

32-
int get_max_len(char *string, XftFont *font, int max_text_width)
32+
static int get_max_len(char *string, XftFont *font, int max_text_width)
3333
{
3434
int eol = strlen(string);
3535
XGlyphInfo info;
@@ -70,7 +70,7 @@ int get_max_len(char *string, XftFont *font, int max_text_width)
7070
return ++eol;
7171
}
7272

73-
void expire(int sig)
73+
static void expire(int sig)
7474
{
7575
XEvent event;
7676
event.type = ButtonPress;

0 commit comments

Comments
 (0)