summaryrefslogtreecommitdiff
path: root/src/shared/strxcpyx.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-03 22:27:45 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-03 22:27:45 +0100
commitf168c27313e4d7b0aabee037dc9c78a5799f0597 (patch)
treedf9ad884b2fdf45f519d04075dc67c8b82bb2915 /src/shared/strxcpyx.c
parent53ab52ac6d2a12ba24f3cfd618c12c99871947ed (diff)
trivial coding style clean ups
- Add space between if/for and the opening parentheses - Place the opening brace on same line as the function (not for udev) From the CODING_STYLE Try to use this: void foo() { } instead of this: void foo() { }
Diffstat (limited to 'src/shared/strxcpyx.c')
-rw-r--r--src/shared/strxcpyx.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/shared/strxcpyx.c b/src/shared/strxcpyx.c
index 3cb04b25cd..6542c0abf5 100644
--- a/src/shared/strxcpyx.c
+++ b/src/shared/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;