projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
7ac7c77
)
Merge pull request #2740 from melak/ros_radioname_null
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 9 Apr 2018 11:18:03 +0000
(13:18 +0200)
committer
GitHub
<noreply@github.com>
Mon, 9 Apr 2018 11:18:03 +0000
(13:18 +0200)
Fix routeros unset radio-name showing up as "(null)"
src/stdendian.h
patch
|
blob
|
history
diff --git
a/src/stdendian.h
b/src/stdendian.h
index
f84a03d
..
2fc569c
100644
(file)
--- a/
src/stdendian.h
+++ b/
src/stdendian.h
@@
-173,7
+173,7
@@
/* handle missing __builtin_bswap16
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624 */
#if defined __GNUC__
-/* define bswap16(x) __builtin_bswap16(x) */
+#define bswap16(x) __builtin_bswap16(x)
#else
#define bswap16(x) \
((uint16_t)((((uint16_t)(x)&0xff00) >> 8) | (((uint16_t)(x)&0x00ff) << 8)))