]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: drop assert.h includes
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 May 2017 15:44:51 +0000 (11:44 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 May 2017 19:44:30 +0000 (15:44 -0400)
We provide an independent reimplementation in macro.h, and that's the one
we want to use. Including the system header is unnecessary and confusing.

src/basic/macro.h
src/boot/bootctl.c
src/journal/journal-qrcode.c
src/libsystemd-network/test-ipv4ll.c

index 6b2aeb933fdd36bcbcc02cefea06bcc2324322ff..a51562db35aa461599367fcfed11886455fefe97 100644 (file)
@@ -19,7 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <assert.h>
 #include <inttypes.h>
 #include <stdbool.h>
 #include <sys/param.h>
index 3358dc32a502d0c58436e024dcb1d6cd616acac6..8efa6050899329c355358a7f1c3d7d45285fb9ff 100644 (file)
@@ -18,7 +18,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <assert.h>
 #include <blkid.h>
 #include <ctype.h>
 #include <dirent.h>
index e38730d65c1207f28bf9fdecf6709dfee0aa315f..5ee10498d10a00e2b014706c0b5954279fc2309a 100644 (file)
@@ -17,7 +17,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <assert.h>
 #include <errno.h>
 #include <qrencode.h>
 #include <stdbool.h>
@@ -25,6 +24,7 @@
 #include <stdlib.h>
 
 #include "journal-qrcode.h"
+#include "macro.h"
 
 #define WHITE_ON_BLACK "\033[40;37;1m"
 #define NORMAL "\033[0m"
index fe70697075a4ff309a44812a0d6245dad133a1a7..9b3fde1b26a13a75c2bf9e59f5feead13a999a90 100644 (file)
@@ -17,7 +17,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <assert.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>