Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-15074 build: Use strlcpy if strscpy is not available
[fs/lustre-release.git]
/
lnet
/
lnet
/
config.c
diff --git
a/lnet/lnet/config.c
b/lnet/lnet/config.c
index
57dd989
..
4eabbd7
100644
(file)
--- a/
lnet/lnet/config.c
+++ b/
lnet/lnet/config.c
@@
-51,6
+51,10
@@
static int lnet_tbnob = 0; /* track text buf allocation */
#define SPACESTR " \t\v\r\n"
#define DELIMITERS ":()[]"
+#ifndef HAVE_STRSCPY
+#define strscpy(s1, s2, sz) strlcpy((s1), (s2), (sz))
+#endif
+
static void
lnet_syntax(const char *name, const char *str, int offset, int width)
{