get rid of unnecessary variables; keep make local variables static
This commit is contained in:
+2
-4
@@ -40,11 +40,9 @@
|
|||||||
#include "render.h"
|
#include "render.h"
|
||||||
|
|
||||||
int heartbeat = HEARTBEAT_OPEN;
|
int heartbeat = HEARTBEAT_OPEN;
|
||||||
int heartbeat_fallback = HEARTBEAT_ON; /* If no heartbeat setting has been set at all */
|
static int heartbeat_fallback = HEARTBEAT_ON; /* If no heartbeat setting has been set at all */
|
||||||
int backlight = BACKLIGHT_OPEN;
|
int backlight = BACKLIGHT_OPEN;
|
||||||
int backlight_fallback = BACKLIGHT_ON; /* If no backlight setting has been set at all */
|
static int backlight_fallback = BACKLIGHT_ON; /* If no backlight setting has been set at all */
|
||||||
int backlight_brightness = 255;
|
|
||||||
int backlight_off_brightness = 0;
|
|
||||||
int output_state = 0;
|
int output_state = 0;
|
||||||
char * server_msg_text;
|
char * server_msg_text;
|
||||||
int server_msg_expire = 0;
|
int server_msg_expire = 0;
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
extern int heartbeat;
|
extern int heartbeat;
|
||||||
extern int backlight;
|
extern int backlight;
|
||||||
extern int backlight_brightness;
|
|
||||||
extern int backlight_off_brightness;
|
|
||||||
extern int output_state;
|
extern int output_state;
|
||||||
|
|
||||||
int render_screen (Screen * s, long int timer);
|
int render_screen (Screen * s, long int timer);
|
||||||
|
|||||||
Reference in New Issue
Block a user