smdev

suckless mdev
git clone git://git.suckless.org/smdev
Log | Files | Refs | README | LICENSE

commit 230e1118843ba0d3acc70c7746a5a22026b25769
parent 9a11e12b5a417ebffe5df793df01c30b8f650862
Author: sin <sin@2f30.org>
Date:   Fri, 16 May 2014 13:17:56 +0100

undef strlcpy in case it is implemented as a macro

some more stylistic changes to util.h

Diffstat:
Mutil.h | 5+++--
Mutil/strlcpy.c | 1+
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/util.h b/util.h @@ -8,9 +8,10 @@ extern char *argv0; char *agetcwd(void); void apathmax(char **, long *); int readuevent(const char *); -int devtype(const char *majmin); +int devtype(const char *); void enprintf(int, const char *, ...); void eprintf(const char *, ...); long estrtol(const char *, int); void recurse(const char *, void (*)(const char *)); -size_t strlcpy(char *dest, const char *src, size_t size); +#undef strlcpy +size_t strlcpy(char *, const char *, size_t); diff --git a/util/strlcpy.c b/util/strlcpy.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <string.h> +#include "../util.h" size_t strlcpy(char *dest, const char *src, size_t size)