1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/lcdproc/0001-iface.patch
Thomas Liske 5dc55cc2c0 testing/lcdproc: upgrade to 0.5.9
- drop patches fixed upstream
- add missing pidfile setting to initd
- set a valid DriverPath in default config
2021-08-24 01:41:35 +00:00

22 lines
758 B
Diff

--- a/clients/lcdproc/iface.h
+++ b/clients/lcdproc/iface.h
@@ -18,7 +18,7 @@
/** max number of interfaces in multi-interface mode */
#define MAX_INTERFACES 3
-IfaceInfo iface[MAX_INTERFACES]; /* interface info */
+extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */
/** Update screen content */
int iface_screen(int rep, int display, int *flags_ptr);
--- a/clients/lcdproc/iface.c
+++ b/clients/lcdproc/iface.c
@@ -32,7 +32,7 @@
#define UNSET_INT -1
#define UNSET_STR "\01"
-
+IfaceInfo iface[MAX_INTERFACES]; /* interface info */
static int iface_count = 0; /* number of interfaces */
static char unit_label[10] = "B"; /* default unit label is Bytes */
static int transfer_screen = 0; /* by default, transfer screen is not shown */