Commit Diff


commit - 2960586ccfa3be117de47a65119c1cb922767957
commit + 363f5a21fd42695c4ed986b733408b541c9d3836
blob - 1e13ab2d3143a9449645fb93ec757437fe3a8681
blob + befa2ddf62ffac435edb529ff128c0769c09f532
--- bedstatus/bedstatus.c
+++ bedstatus/bedstatus.c
@@ -1,6 +1,3 @@
-#ifdef __FreeBSD__
-# define __BSD_VISIBLE 1
-#endif
 #include <X11/Xlib.h>
 #include <unistd.h>
 #include <stdarg.h>
blob - 9675b0f832ce3cd952c42b917c1e7e0d3a3b98c2
blob + a2a8b9c0b3896521382ad56a0ad02c07e3e13e1d
--- config.mk
+++ config.mk
@@ -6,6 +6,6 @@ TERM = st
 
 VERSION = "benni-0.1"
 
-CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DPREFIX=\"${PREFIX}\" -DVERSION=\"${VERSION}\" -DTERM=\"${TERM}\"  -DXINERAMA
-CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-sign-compare -O2 ${CPPFLAGS}
+CPPFLAGS = -D_BSD_SOURCE -D__BSD_VISIBLE -D_XOPEN_SOURCE=700 -DPREFIX=\"${PREFIX}\" -DVERSION=\"${VERSION}\" -DTERM=\"${TERM}\"  -DXINERAMA
+CFLAGS = -std=c23 -pedantic -Wall -Wextra -Wno-sign-compare -O2 ${CPPFLAGS}
 
blob - 51ad5491796581968f781ab06a3ef9b939c6f9b1
blob + 0fc063bc7dbeb142ba339c208cb3695b6a11d796
--- dmenu/dmenu.c
+++ dmenu/dmenu.c
@@ -1,7 +1,4 @@
 /* See LICENSE file for copyright and license details. */
-#ifdef __FreeBSD__
-# define __BSD_VISIBLE 1
-#endif
 #include <ctype.h>
 #include <locale.h>
 #include <math.h>
blob - 2d8f7ba65b67b7d4d84b83fc806170c2bc1c7541
blob + f2dc57da2d1959f62eae007f81b64e15bb97bf8b
--- netris/screen.c
+++ netris/screen.c
@@ -54,13 +54,13 @@
 #define sigmask(s) (1 << ((s) - 1))
 #endif
 
+#include "screen.h"
+#include "tetris.h"
+
 #ifdef __linux__
 # define OXTABS XTABS
 #endif
 
-#include "screen.h"
-#include "tetris.h"
-
 static cell curscreen[B_SIZE];	/* 1 => standout (or otherwise marked) */
 static int curscore;
 static int isset;		/* true => terminal is in game mode */
@@ -72,7 +72,6 @@ static	void	stopset(int) __dead;
 
 extern int ospeed;
 
-
 /*
  * Routine used by tputs().
  */
blob - c6757ed8a677dfa035922bdd76ef88a1225e4ff3
blob + 5f113c43731fb0da3341b1253e886e92a5f53c07
--- slock/slock.c
+++ slock/slock.c
@@ -1,6 +1,5 @@
 /* See LICENSE file for license details. */
-#ifdef __FreeBSD__
-# define __BSD_VISIBLE 1
+#ifdef __OpenBSD__
 # define HAVE_BSD_AUTH 1
 #endif
 
@@ -12,7 +11,6 @@
 # include <shadow.h>
 #endif
 
-#include <stdnoreturn.h>
 #include <ctype.h>
 #include <errno.h>
 #include <grp.h>
@@ -64,7 +62,8 @@ struct xrandr {
 
 #include "config.h"
 
-static noreturn void
+[[noreturn]]
+static void
 die(const char *errstr, ...)
 {
 	va_list ap;
blob - 7dde78cf88603c8d95a1d555f99319e141609877
blob + d36d9c8c5fde5ad200f4e2a9f61d9ffa16ae67a9
--- xbgcd/xbgcd.c
+++ xbgcd/xbgcd.c
@@ -4,10 +4,6 @@
  * between steps to get the new background color. If the substep reaches 1.0f,
  * it resets it, and starts the next step.
  */
-#ifdef __FreeBSD__
-# define __BSD_VISIBLE 1
-#endif
-
 #include <X11/Xlib.h>
 #include <unistd.h>
 #include <stdint.h>