gentoo-ebuilds/x11-plugins/wmnetload/files/wmnetload-1.3-C23.patch
NHOrus 371515632b
x11-plugins/wmnetload: update EAPI 7 -> 8, port to C23
Closes: https://bugs.gentoo.org/919443
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Part-of: https://github.com/gentoo/gentoo/pull/41663
Closes: https://github.com/gentoo/gentoo/pull/41663
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
2025-04-24 20:54:41 +02:00

23 lines
605 B
Diff

Correct size of variables that are passed to library and then discarded.
Also replace sed that corrects path for library.
https://bugs.gentoo.org/919443
--- a/src/wmnetload.c
+++ b/src/wmnetload.c
@@ -37,7 +37,7 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include <unistd.h>
-#include <dockapp.h>
+#include <libdockapp/dockapp.h>
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
@@ -1051,7 +1051,7 @@
setshape(void)
{
Pixmap mask, pixmap;
- unsigned int h, w;
+ unsigned short int h, w;
if (DAMakePixmapFromData(backlight_off_xpm, &pixmap, &mask, &h, &w)) {
DASetShape(mask);