chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc983c9
)
tree-wide: minor formatting inconsistency cleanups
author
Vito Caputo
<vito.caputo@coreos.com>
Tue, 23 Feb 2016 17:52:52 +0000
(09:52 -0800)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000
(10:12 +0200)
src/basic/io-util.h
patch
|
blob
|
history
src/basic/list.h
patch
|
blob
|
history
src/basic/macro.h
patch
|
blob
|
history
src/basic/parse-util.c
patch
|
blob
|
history
src/basic/stdio-util.h
patch
|
blob
|
history
src/libelogind/sd-bus/bus-objects.c
patch
|
blob
|
history
src/shared/bus-util.c
patch
|
blob
|
history
src/shared/conf-parser.h
patch
|
blob
|
history
diff --git
a/src/basic/io-util.h
b/src/basic/io-util.h
index 142c940d92692f6a2257aeba0f5786f039e483d2..4684ed3bfc782919b71600521ba7a66f4b04043d 100644
(file)
--- a/
src/basic/io-util.h
+++ b/
src/basic/io-util.h
@@
-46,7
+46,7
@@
ssize_t sparse_write(int fd, const void *p, size_t sz, size_t run_length);
char *_s = (char *)(s); \
_i->iov_base = _s; \
_i->iov_len = strlen(_s); \
char *_s = (char *)(s); \
_i->iov_base = _s; \
_i->iov_len = strlen(_s); \
- } while(false)
+ } while
(false)
static inline size_t IOVEC_TOTAL_SIZE(const struct iovec *i, unsigned n) {
unsigned j;
static inline size_t IOVEC_TOTAL_SIZE(const struct iovec *i, unsigned n) {
unsigned j;
diff --git
a/src/basic/list.h
b/src/basic/list.h
index c68185f5878eaad93d4abba7bb9a1a6107d424cd..5962aa42113b5d425cd181241a7f17da9ef43439 100644
(file)
--- a/
src/basic/list.h
+++ b/
src/basic/list.h
@@
-32,7
+32,7
@@
#define LIST_HEAD_INIT(head) \
do { \
(head) = NULL; } \
#define LIST_HEAD_INIT(head) \
do { \
(head) = NULL; } \
- while(false)
+ while
(false)
/* Initialize a list item */
#define LIST_INIT(name,item) \
/* Initialize a list item */
#define LIST_INIT(name,item) \
@@
-40,7
+40,7
@@
typeof(*(item)) *_item = (item); \
assert(_item); \
_item->name##_prev = _item->name##_next = NULL; \
typeof(*(item)) *_item = (item); \
assert(_item); \
_item->name##_prev = _item->name##_next = NULL; \
- } while(false)
+ } while
(false)
/* Prepend an item to the list */
#define LIST_PREPEND(name,head,item) \
/* Prepend an item to the list */
#define LIST_PREPEND(name,head,item) \
@@
-51,7
+51,7
@@
_item->name##_next->name##_prev = _item; \
_item->name##_prev = NULL; \
*_head = _item; \
_item->name##_next->name##_prev = _item; \
_item->name##_prev = NULL; \
*_head = _item; \
- } while(false)
+ } while
(false)
/* Append an item to the list */
#define LIST_APPEND(name,head,item) \
/* Append an item to the list */
#define LIST_APPEND(name,head,item) \
@@
-59,7
+59,7
@@
typeof(*(head)) *_tail; \
LIST_FIND_TAIL(name,head,_tail); \
LIST_INSERT_AFTER(name,head,_tail,item); \
typeof(*(head)) *_tail; \
LIST_FIND_TAIL(name,head,_tail); \
LIST_INSERT_AFTER(name,head,_tail,item); \
- } while(false)
+ } while
(false)
/* Remove an item from the list */
#define LIST_REMOVE(name,head,item) \
/* Remove an item from the list */
#define LIST_REMOVE(name,head,item) \
@@
-75,7
+75,7
@@
*_head = _item->name##_next; \
} \
_item->name##_next = _item->name##_prev = NULL; \
*_head = _item->name##_next; \
} \
_item->name##_next = _item->name##_prev = NULL; \
- } while(false)
+ } while
(false)
/* Find the head of the list */
#define LIST_FIND_HEAD(name,item,head) \
/* Find the head of the list */
#define LIST_FIND_HEAD(name,item,head) \
@@
-119,7
+119,7
@@
_b->name##_prev = _a; \
_a->name##_next = _b; \
} \
_b->name##_prev = _a; \
_a->name##_next = _b; \
} \
- } while(false)
+ } while
(false)
/* Insert an item before another one (a = where, b = what) */
#define LIST_INSERT_BEFORE(name,head,a,b) \
/* Insert an item before another one (a = where, b = what) */
#define LIST_INSERT_BEFORE(name,head,a,b) \
@@
-145,7
+145,7
@@
_b->name##_next = _a; \
_a->name##_prev = _b; \
} \
_b->name##_next = _a; \
_a->name##_prev = _b; \
} \
- } while(false)
+ } while
(false)
#define LIST_JUST_US(name,item) \
(!(item)->name##_prev && !(item)->name##_next) \
#define LIST_JUST_US(name,item) \
(!(item)->name##_prev && !(item)->name##_next) \
diff --git
a/src/basic/macro.h
b/src/basic/macro.h
index ab5cc97e17ac386a9031c0f61053e699fd2f5a1e..c34441d75dcd6f6e94cb91cb6bc5170ee234527d 100644
(file)
--- a/
src/basic/macro.h
+++ b/
src/basic/macro.h
@@
-224,7
+224,7
@@
static inline unsigned long ALIGN_POWER2(unsigned long u) {
/* We override the glibc assert() here. */
#undef assert
#ifdef NDEBUG
/* We override the glibc assert() here. */
#undef assert
#ifdef NDEBUG
-#define assert(expr) do {} while(false)
+#define assert(expr) do {} while
(false)
#else
#define assert(expr) assert_message_se(expr, #expr)
#endif
#else
#define assert(expr) assert_message_se(expr, #expr)
#endif
diff --git
a/src/basic/parse-util.c
b/src/basic/parse-util.c
index 29012b837638b059dc8bb533a9da0c732b612382..63732634af8ef45d0199204c4f013b02728e8689 100644
(file)
--- a/
src/basic/parse-util.c
+++ b/
src/basic/parse-util.c
@@
-507,7
+507,7
@@
int parse_fractional_part_u(const char **p, size_t digits, unsigned *res) {
s = *p;
/* accept any number of digits, strtoull is limted to 19 */
s = *p;
/* accept any number of digits, strtoull is limted to 19 */
- for(i=0; i < digits; i++,s++) {
+ for
(i=0; i < digits; i++,s++) {
if (*s < '0' || *s > '9') {
if (i == 0)
return -EINVAL;
if (*s < '0' || *s > '9') {
if (i == 0)
return -EINVAL;
diff --git
a/src/basic/stdio-util.h
b/src/basic/stdio-util.h
index 60cf86a532813bd1ad3c0ae655bb0f1b3b730b40..757c1059110f1bc4f0d0fb815d60afdb00e622f2 100644
(file)
--- a/
src/basic/stdio-util.h
+++ b/
src/basic/stdio-util.h
@@
-77,4
+77,4
@@
do { \
assert_not_reached("Unknown format string argument."); \
} \
} \
assert_not_reached("Unknown format string argument."); \
} \
} \
-} while(false)
+} while
(false)
diff --git
a/src/libelogind/sd-bus/bus-objects.c
b/src/libelogind/sd-bus/bus-objects.c
index 9525948cc8f58aa5deb78b58029d7043d5679e5e..38fc029b5a78114986345c12031c49a7d3ae4565 100644
(file)
--- a/
src/libelogind/sd-bus/bus-objects.c
+++ b/
src/libelogind/sd-bus/bus-objects.c
@@
-145,7
+145,7
@@
static int add_enumerated_to_set(
continue;
}
continue;
}
- if (!object_path_is_valid(*k)){
+ if (!object_path_is_valid(*k))
{
free(*k);
r = -EINVAL;
continue;
free(*k);
r = -EINVAL;
continue;
diff --git
a/src/shared/bus-util.c
b/src/shared/bus-util.c
index 8bdb3a5fb7ede036111e4dc5e0dc0011d95d8eef..4e9bc512c8b43f32aa6683a582ec6f74af93292d 100644
(file)
--- a/
src/shared/bus-util.c
+++ b/
src/shared/bus-util.c
@@
-847,7
+847,7
@@
int bus_print_property(const char *name, sd_bus_message *property, bool all) {
if (r < 0)
return r;
if (r < 0)
return r;
- while((r = sd_bus_message_read_basic(property, SD_BUS_TYPE_STRING, &str)) > 0) {
+ while
((r = sd_bus_message_read_basic(property, SD_BUS_TYPE_STRING, &str)) > 0) {
_cleanup_free_ char *escaped = NULL;
if (first)
_cleanup_free_ char *escaped = NULL;
if (first)
diff --git
a/src/shared/conf-parser.h
b/src/shared/conf-parser.h
index 92cab70b806cece00cbc78f0b4fb1b055b87f2b2..a42ca6b56cce3f0b09670544e4fbb4a2b9ea0a10 100644
(file)
--- a/
src/shared/conf-parser.h
+++ b/
src/shared/conf-parser.h
@@
-188,7
+188,7
@@
int config_parse_personality(const char *unit, const char *filename, unsigned li
assert(data); \
\
xs = new0(type, 1); \
assert(data); \
\
xs = new0(type, 1); \
- if
(!xs)
\
+ if
(!xs)
\
return -ENOMEM; \
\
*xs = invalid; \
return -ENOMEM; \
\
*xs = invalid; \