playground

Sandbox, container or whatever utilities for linux.
git clone https://pi.duncano.de/git/playground.git
Log | Files | Refs | README

commit b430e32c9d7939051ef4bc1ca1fa063572ff89b8
parent 83e97b3bc9d6b5c9ba086aeb17874cbf95fc0deb
Author: Duncaen <mail@duncano.de>
Date:   Sun, 19 Feb 2017 15:18:01 +0100

libpledge/pledge: fix more warnings

Diffstat:
Makefile | 3++-
libpledge.c | 2+-
pledge.c | 2+-
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ .error : This Makefile needs GNU make -CFLAGS+=-std=c99 -g -O2 -Wall -pedantic -Wall -Wextra -fstack-protector-strong +CFLAGS+=-std=c99 -g -O2 -fstack-protector-strong +CFLAGS+=-Wall -Wextra -Wwrite-strings -Wno-switch -Wno-extended-offsetof -pedantic CPPFLAGS+=-D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2 DESTDIR= diff --git a/libpledge.c b/libpledge.c @@ -129,7 +129,7 @@ union arg64 { len-1-(fp-fprog->filter)-1 struct promise { - char *name; + const char *name; uint64_t flags; }; diff --git a/pledge.c b/pledge.c @@ -22,7 +22,7 @@ usage() } static void -addpromises(char *s) +addpromises(const char *s) { size_t len, pos; pos = strlen(promises);