summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-09-14 08:37:05 -0400
committerKarolin Seeger <kseeger@samba.org>2008-09-15 11:39:40 +0200
commit2cbe5254be53256630f2207a4eac4052a730953a (patch)
tree4245a67aeae0707eae81bda45ee73badd200991b /source/client
parent6a4a95bb2542214850dd65b7f1a033a96f24e7f7 (diff)
downloadsamba-2cbe5254be53256630f2207a4eac4052a730953a.tar.gz
samba-2cbe5254be53256630f2207a4eac4052a730953a.tar.xz
samba-2cbe5254be53256630f2207a4eac4052a730953a.zip
mount.cifs: make local versions of strlcat and strlcpy static
...to silence -Wmissing-prototypes Signed-off-by: Jeff Layton <jlayton@redhat.com> (cherry picked from commit b3e9effe65c7ac1538309aef8d8b7e801947542a)
Diffstat (limited to 'source/client')
-rw-r--r--source/client/mount.cifs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index 9d2b4491957..3b56e5f861a 100644
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -94,7 +94,7 @@ char * prefixpath = NULL;
/* like strncpy but does not 0 fill the buffer and always null
* terminates. bufsize is the size of the destination buffer */
-size_t strlcpy(char *d, const char *s, size_t bufsize)
+static size_t strlcpy(char *d, const char *s, size_t bufsize)
{
size_t len = strlen(s);
size_t ret = len;
@@ -108,7 +108,7 @@ size_t strlcpy(char *d, const char *s, size_t bufsize)
/* like strncat but does not 0 fill the buffer and always null
* terminates. bufsize is the length of the buffer, which should
* be one more than the maximum resulting string length */
-size_t strlcat(char *d, const char *s, size_t bufsize)
+static size_t strlcat(char *d, const char *s, size_t bufsize)
{
size_t len1 = strlen(d);
size_t len2 = strlen(s);