Skip to content

Commit

Permalink
lcdd: fix gcc-14 build
Browse files Browse the repository at this point in the history
  • Loading branch information
heitbaum committed May 23, 2024
1 parent 5df56b7 commit 0b387bf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ index 0000000..56f9219
+ p->gFlags = 0;
+ p->gDisplayMode = VFD_MODE_NONE;
+
+ if ((p->framebuf = (char *) calloc(1, p->height)) == NULL)
+ if ((p->framebuf = (char **) calloc(1, p->height)) == NULL)
+ {
+ report(RPT_CRIT, "Allocating memory for framebuffer Failed\n");
+ return -1;
Expand Down Expand Up @@ -362,7 +362,7 @@ new file mode 100644
index 0000000..0bb565c
--- /dev/null
+++ b/server/drivers/led.c
@@ -0,0 +1,1065 @@
@@ -0,0 +1,1066 @@
+/* File modified by Henrik Larsson 2007 to interface with LCDproc API
+ */
+
Expand Down Expand Up @@ -394,6 +394,7 @@ index 0000000..0bb565c
+#include "libvfd.h"
+#include "shared/report.h"
+#include "dm140.h"
+#include "led.h"
+
+
+//**************************************************************
Expand Down

0 comments on commit 0b387bf

Please sign in to comment.