summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-09-12 21:21:33 -0400
committerJeff Layton <jlayton@redhat.com>2008-09-12 21:21:33 -0400
commit73caef2c120f69cac95bcfd73ab3bd53212b73ba (patch)
treeaa9d87349ea25d367035bee6da1b514aaba63f6f /source3
parent56d5149dc68c30079fc533f5b6f6adbb1f47f246 (diff)
downloadsamba-73caef2c120f69cac95bcfd73ab3bd53212b73ba.tar.gz
samba-73caef2c120f69cac95bcfd73ab3bd53212b73ba.tar.bz2
samba-73caef2c120f69cac95bcfd73ab3bd53212b73ba.zip
mount.cifs: make local versions of strlcat and strlcpy static
...to silence -Wmissing-prototypes Signed-off-by: Jeff Layton <jlayton@redhat.com> (This used to be commit fc7c71f15b39158ac58beaa90cc9038db680b8cb)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/mount.cifs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index 9d2b449195..3b56e5f861 100644
--- a/source3/client/mount.cifs.c
+++ b/source3/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);