From: <da...@us...> - 2003-06-26 22:34:45
|
Update of /cvsroot/cerber/cerb-ng/kcerb/contrib In directory sc8-pr-cvs1:/tmp/cvs-serv5862/kcerb/contrib Modified Files: basename.c dirname.c strlcat.c Log Message: Fixed build on alpha processors and other cleanups. "Fixed build" means that now it compiles on alpha, but it doesn't mean that cerb will work stable on this CPU. I'm able to test compilation process and that's all. Index: basename.c =================================================================== RCS file: /cvsroot/cerber/cerb-ng/kcerb/contrib/basename.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- basename.c 4 Apr 2003 16:55:20 -0000 1.1 +++ basename.c 26 Jun 2003 22:34:42 -0000 1.2 @@ -33,6 +33,7 @@ */ #include <sys/param.h> +#include <sys/libkern.h> #include <sys/errno.h> #include "libkcerb.h" Index: dirname.c =================================================================== RCS file: /cvsroot/cerber/cerb-ng/kcerb/contrib/dirname.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- dirname.c 4 Apr 2003 16:55:23 -0000 1.1 +++ dirname.c 26 Jun 2003 22:34:42 -0000 1.2 @@ -33,6 +33,7 @@ */ #include <sys/param.h> +#include <sys/libkern.h> #include <sys/errno.h> #include "libkcerb.h" Index: strlcat.c =================================================================== RCS file: /cvsroot/cerber/cerb-ng/kcerb/contrib/strlcat.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- strlcat.c 4 Apr 2003 16:55:24 -0000 1.1 +++ strlcat.c 26 Jun 2003 22:34:42 -0000 1.2 @@ -32,6 +32,7 @@ */ #include <sys/types.h> +#include <sys/libkern.h> #include "libkcerb.h" @@ -43,14 +44,11 @@ * If retval >= siz, truncation occurred. */ size_t -strlcat(dst, src, siz) - char *dst; - const char *src; - size_t siz; +strlcat(char *dst, const char *src, size_t siz) { - char *d = dst; - const char *s = src; - size_t n = siz; + register char *d = dst; + register const char *s = src; + register size_t n = siz; size_t dlen; /* Find the end of dst and adjust bytes left but don't go past end */ |