diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-01-14 12:20:25 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-01-14 12:20:25 -0500 |
commit | b8ed8b124aaff754e244dff6930b36c192fa69e0 (patch) | |
tree | c6d7caf75d42584eaf0227332d6c43ecc76d7565 /src/libudev/strxcpyx.c | |
parent | fd98dfdcb889c74c84a00e54e8094f9c91387c6a (diff) |
src/libudev: bring in line with upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/strxcpyx.c')
-rw-r--r-- | src/libudev/strxcpyx.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/libudev/strxcpyx.c b/src/libudev/strxcpyx.c index fbdf5ac658..6efa237d4b 100644 --- a/src/libudev/strxcpyx.c +++ b/src/libudev/strxcpyx.c @@ -29,8 +29,7 @@ #include <string.h> #include "strxcpyx.h" -size_t strpcpy(char **dest, size_t size, const char *src) -{ +size_t strpcpy(char **dest, size_t size, const char *src) { size_t len; len = strlen(src); @@ -48,8 +47,7 @@ size_t strpcpy(char **dest, size_t size, const char *src) return size; } -size_t strpcpyf(char **dest, size_t size, const char *src, ...) -{ +size_t strpcpyf(char **dest, size_t size, const char *src, ...) { va_list va; int i; @@ -67,8 +65,7 @@ size_t strpcpyf(char **dest, size_t size, const char *src, ...) return size; } -size_t strpcpyl(char **dest, size_t size, const char *src, ...) -{ +size_t strpcpyl(char **dest, size_t size, const char *src, ...) { va_list va; va_start(va, src); @@ -80,8 +77,7 @@ size_t strpcpyl(char **dest, size_t size, const char *src, ...) return size; } -size_t strscpy(char *dest, size_t size, const char *src) -{ +size_t strscpy(char *dest, size_t size, const char *src) { char *s; s = dest; |