Skip to content

Commit 8869b69

Browse files
committed
make check-formatting happy
1 parent 8d45937 commit 8869b69

8 files changed

Lines changed: 10 additions & 12 deletions

File tree

include/ApiIF.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ApiIF {
5858

5959
private:
6060
Channel::Ptr _ch; /**< pointer to channel where API belongs to */
61-
}; // class ApiIF
61+
}; // class ApiIF
6262

6363
} // namespace vz
6464
#endif /* _ApiIF_hpp_ */

include/Json.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class Json {
1111
Json(struct json_object *jso) : _jso(jso){};
1212
~Json() { _jso = NULL; };
1313

14-
struct json_object *Object() {
15-
return _jso;
16-
}
14+
struct json_object *Object() { return _jso; }
1715

1816
private:
1917
struct json_object *_jso;

src/Meter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#ifdef OMS_SUPPORT
4747
#include "protocols/MeterOMS.hpp"
4848
#endif
49-
//#include <protocols/.h>
49+
// #include <protocols/.h>
5050

5151
#define METER_DETAIL(NAME, CLASSNAME, DESC, MAX_RDS) \
5252
{ meter_protocol_##NAME, #NAME, DESC, MAX_RDS }

src/protocols/MeterD0.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,8 @@ void MeterD0::dump_file(DUMP_MODE ctrl, const char *str) {
952952
// snip start
953953

954954
const char hex_asc[] = "0123456789abcdef";
955-
#define hex_asc_lo(x) hex_asc[((x)&0x0f)]
956-
#define hex_asc_hi(x) hex_asc[((x)&0xf0) >> 4]
955+
#define hex_asc_lo(x) hex_asc[((x) & 0x0f)]
956+
#define hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4]
957957

958958
static inline char *hex_byte_pack(char *buf, char byte) {
959959
*buf++ = hex_asc_hi(byte);

src/protocols/MeterExec.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#include <stdlib.h>
2929
#include <sys/time.h>
3030
// Regex is not working with gcc-4.6
31-
//#include <regex>
32-
//#include <string>
31+
// #include <regex>
32+
// #include <string>
3333

3434
#include "Options.hpp"
3535
#include "protocols/MeterExec.hpp"

src/protocols/MeterS0.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void MeterS0::counter_thread() {
300300
nanosleep(&ts, NULL); // we can ignore any errors here
301301
}
302302
} // non blocking case
303-
} // while
303+
} // while
304304
print(log_finest, "Counter thread stopped with %d imp", name().c_str(), _impulses.load());
305305
}
306306

src/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <cstdio>
44

55
#include "common.h"
6-
//#include "list.h"
6+
// #include "list.h"
77
#include "Buffer.hpp"
88

99
// void test_list() {

src/threads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void *reading_thread(void *arg) {
148148
}
149149
}
150150

151-
} // channel loop
151+
} // channel loop
152152
} while ((mtr->aggtime() > 0) && (time(NULL) < aggIntEnd)); /* default aggtime is -1 */
153153

154154
for (MeterMap::iterator ch = mapping->begin(); ch != mapping->end(); ch++) {

0 commit comments

Comments
 (0)