Commit 775bd1e4 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

dist: make cpplint happy

parent dd244343
dist/*.c
dist/*.h
sims/net/*/*.c sims/net/*/*.c
sims/net/*/*.cc sims/net/*/*.cc
sims/nic/corundum/*.cc sims/nic/corundum/*.cc
......
...@@ -107,7 +107,6 @@ static int ParseArgs(int argc, char *argv[]) { ...@@ -107,7 +107,6 @@ static int ParseArgs(int argc, char *argv[]) {
int c; int c;
while ((c = getopt(argc, argv, opts)) != -1) { while ((c = getopt(argc, argv, opts)) != -1) {
switch (c) { switch (c) {
case 'l': case 'l':
mode_listen = true; mode_listen = true;
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifndef DIST_NET_RDMA_NET_RDMA_H_ #ifndef DIST_NET_RDMA_H_
#define DIST_NET_RDMA_NET_RDMA_H_ #define DIST_NET_RDMA_H_
#include <arpa/inet.h> #include <arpa/inet.h>
#include <stdbool.h> #include <stdbool.h>
...@@ -111,4 +111,4 @@ int RdmaPassEntry(struct Peer *peer, uint32_t n); ...@@ -111,4 +111,4 @@ int RdmaPassEntry(struct Peer *peer, uint32_t n);
int RdmaPassReport(); int RdmaPassReport();
int RdmaEvent(); int RdmaEvent();
#endif // DIST_NET_RDMA_NET_RDMA_H_ #endif // DIST_NET_RDMA_H_
\ No newline at end of file
...@@ -42,7 +42,7 @@ struct NetRdmaReportMsg { ...@@ -42,7 +42,7 @@ struct NetRdmaReportMsg {
uint32_t written_pos[MAX_PEERS]; uint32_t written_pos[MAX_PEERS];
uint32_t clean_pos[MAX_PEERS]; uint32_t clean_pos[MAX_PEERS];
bool valid[MAX_PEERS]; bool valid[MAX_PEERS];
} __attribute__ ((packed)); } __attribute__((packed));
struct NetRdmaMsg { struct NetRdmaMsg {
union { union {
...@@ -60,7 +60,7 @@ struct NetRdmaMsg { ...@@ -60,7 +60,7 @@ struct NetRdmaMsg {
kMsgNet, kMsgNet,
kMsgReport, kMsgReport,
} msg_type; } msg_type;
} __attribute__ ((packed)); } __attribute__((packed));
static struct rdma_event_channel *cm_channel; static struct rdma_event_channel *cm_channel;
static struct rdma_conn_param conn_param = { }; static struct rdma_conn_param conn_param = { };
...@@ -651,4 +651,4 @@ int RdmaPassReport() { ...@@ -651,4 +651,4 @@ int RdmaPassReport() {
} }
return 0; return 0;
} }
\ No newline at end of file
...@@ -214,4 +214,5 @@ void *ShmMap(int shm_fd, size_t *psize) { ...@@ -214,4 +214,5 @@ void *ShmMap(int shm_fd, size_t *psize) {
*psize = statbuf.st_size; *psize = statbuf.st_size;
return p; return p;
} }
\ No newline at end of file
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifndef DIST_NET_RDMA_UTILS_H_ #ifndef DIST_UTILS_H_
#define DIST_NET_RDMA_UTILS_H_ #define DIST_UTILS_H_
#include <stddef.h> #include <stddef.h>
...@@ -35,4 +35,4 @@ int UxsocketSendFd(int connfd, void *data, size_t len, int fd); ...@@ -35,4 +35,4 @@ int UxsocketSendFd(int connfd, void *data, size_t len, int fd);
int ShmCreate(const char *path, size_t size, void **addr); int ShmCreate(const char *path, size_t size, void **addr);
void *ShmMap(int shm_fd, size_t *size); void *ShmMap(int shm_fd, size_t *size);
#endif // DIST_NET_RDMA_UTILS_H_ #endif // DIST_UTILS_H_
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment