]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Add strlcat and strlcpy to libafsauthent and libafsrpc
authorRuss Allbery <rra@stanford.edu>
Sun, 12 Jul 2009 18:24:17 +0000 (11:24 -0700)
committerDerrick Brashear <shadow@dementia.org>
Mon, 13 Jul 2009 14:59:35 +0000 (08:59 -0600)
Other functions included in libafsauthent and libafsrpc are using strlcpy
and strlcat, so include those objects in the libraries so that they stay
self-contained.

strlcat and strlcpy shouldn't be part of the public API for the libraries,
for various reasons including the fact that they're not built on all
platforms.  Therefore, don't add the functions to the library exports and
include them separately in each library.

Reviewed-on: http://gerrit.openafs.org/63
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>
src/libafsauthent/Makefile.in
src/libafsrpc/Makefile.in
src/shlibafsauthent/Makefile.in
src/shlibafsrpc/Makefile.in

index b4e081e4a7cfb76ee99db70fb1900f42b76ec355..413ef8cd78ec4d58763fff5f7e34237c79235f37 100644 (file)
@@ -64,6 +64,8 @@ UTILOBJS = \
        dirpath.o \
        serverLog.o \
        snprintf.o \
+       strlcat.o \
+       strlcpy.o \
        fileutil.o
 
 RXKADOBJS = \
@@ -191,6 +193,12 @@ serverLog.o: ${UTIL}/serverLog.c
 snprintf.o: ${UTIL}/snprintf.c
        ${CCRULE}
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE}
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE}
+
 fileutil.o: ${UTIL}/fileutil.c
        ${CCRULE}
 
index fe8643832492c8f3d68efb12db250a20e4c63bf1..e8eeeac0a9c0a110b66c4294167eba39edbe7f24 100644 (file)
@@ -39,7 +39,9 @@ SYSOBJS =\
 UTILOBJS =\
        assert.o \
        casestrcpy.o \
-       base64.o
+       base64.o \
+       strlcat.o \
+       strlcpy.o
 
 COMERROBJS =\
        error_msg.o \
@@ -351,6 +353,12 @@ assert.o: ${UTIL}/assert.c
 base64.o: ${UTIL}/base64.c
        ${CCRULE} ${UTIL}/base64.c
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE} ${UTIL}/strlcat.c
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE} ${UTIL}/strlcpy.c
+
 fasttime.o: ${LWP}/fasttime.c
        ${CCRULE} ${LWP}/fasttime.c
 
index 54cf4af4e59c25e822087c8ae39d194483451222..63575babf80ededdefe5acd5b353eec2a6f03f92 100644 (file)
@@ -69,6 +69,8 @@ UTILOBJS = \
        dirpath.o \
        serverLog.o \
        snprintf.o \
+       strlcat.o \
+       strlcpy.o \
        fileutil.o
 
 RXKADOBJS = \
@@ -222,6 +224,12 @@ serverLog.o: ${UTIL}/serverLog.c
 snprintf.o: ${UTIL}/snprintf.c
        ${CCRULE}
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE}
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE}
+
 fileutil.o: ${UTIL}/fileutil.c
        ${CCRULE}
 
index c59a58b630cba015c32386799d5257fdff724d8a..d46ffbf3fc918c3a12c6788bde76d84902be1509 100644 (file)
@@ -44,7 +44,9 @@ SYSOBJS =\
 UTILOBJS =\
        assert.o \
        casestrcpy.o \
-       base64.o
+       base64.o \
+       strlcat.o \
+       strlcpy.o
 
 COMERROBJS =\
        error_msg.o \
@@ -370,6 +372,12 @@ assert.o: ${UTIL}/assert.c
 base64.o: ${UTIL}/base64.c
        ${CCRULE}
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE}
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE}
+
 fasttime.o: ${LWP}/fasttime.c
        ${CCRULE} ${LWP}/fasttime.c