projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d4a2b5
)
Declare var inside loop (code review change)
author
usev6
<use_v6@aglaz.de>
Tue, 30 Apr 2019 05:39:23 +0000
(07:39 +0200)
committer
usev6
<use_v6@aglaz.de>
Tue, 30 Apr 2019 05:39:23 +0000
(07:39 +0200)
src/utils/format_graphite/format_graphite.c
patch
|
blob
|
history
diff --git
a/src/utils/format_graphite/format_graphite.c
b/src/utils/format_graphite/format_graphite.c
index
32bd64e
..
ffef3e2
100644
(file)
--- a/
src/utils/format_graphite/format_graphite.c
+++ b/
src/utils/format_graphite/format_graphite.c
@@
-36,9
+36,8
@@
/* helper function for reverse_hostname */
void reverse_string(char *r_host, int len) {
- char t;
for (int i = 0, j = len - 1; i < j; i++, j--) {
- t = r_host[i];
+
char
t = r_host[i];
r_host[i] = r_host[j];
r_host[j] = t;
}