about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-02-03 20:59:08 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-02-03 20:59:08 -0800
commit5c1a7b6b12dc850145938e5b656778fc741a968a (patch)
tree36dc8029853738d395c5d46ec6eca351a841c584
parentf5be8e1955a1a0e0da4f1e15dfce9482671387f8 (diff)
downloadteliva-5c1a7b6b12dc850145938e5b656778fc741a968a.tar.gz
fix a couple of warnings
It's not clear to me where my Linux gets strlcpy and strlcat from
¯\_(ツ)_/¯
-rw-r--r--src/realpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/realpath.c b/src/realpath.c
index dc57bbb..a59b637 100644
--- a/src/realpath.c
+++ b/src/realpath.c
@@ -36,6 +36,9 @@
 #include <string.h>
 #include <unistd.h>
 
+extern size_t strlcpy(char * dst, const char * src, size_t size);
+extern size_t strlcat(char * dst, const char * src, size_t size);
+
 /*
  * Find the real name of path, by removing all ".", ".." and symlink
  * components.  Returns (resolved) on success, or (NULL) on failure,