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/*/*.cc
sims/nic/corundum/*.cc
......
......@@ -107,7 +107,6 @@ static int ParseArgs(int argc, char *argv[]) {
int c;
while ((c = getopt(argc, argv, opts)) != -1) {
switch (c) {
case 'l':
mode_listen = true;
......
......@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef DIST_NET_RDMA_NET_RDMA_H_
#define DIST_NET_RDMA_NET_RDMA_H_
#ifndef DIST_NET_RDMA_H_
#define DIST_NET_RDMA_H_
#include <arpa/inet.h>
#include <stdbool.h>
......@@ -111,4 +111,4 @@ int RdmaPassEntry(struct Peer *peer, uint32_t n);
int RdmaPassReport();
int RdmaEvent();
#endif // DIST_NET_RDMA_NET_RDMA_H_
\ No newline at end of file
#endif // DIST_NET_RDMA_H_
......@@ -42,7 +42,7 @@ struct NetRdmaReportMsg {
uint32_t written_pos[MAX_PEERS];
uint32_t clean_pos[MAX_PEERS];
bool valid[MAX_PEERS];
} __attribute__ ((packed));
} __attribute__((packed));
struct NetRdmaMsg {
union {
......@@ -60,7 +60,7 @@ struct NetRdmaMsg {
kMsgNet,
kMsgReport,
} msg_type;
} __attribute__ ((packed));
} __attribute__((packed));
static struct rdma_event_channel *cm_channel;
static struct rdma_conn_param conn_param = { };
......@@ -651,4 +651,4 @@ int RdmaPassReport() {
}
return 0;
}
\ No newline at end of file
}
......@@ -214,4 +214,5 @@ void *ShmMap(int shm_fd, size_t *psize) {
*psize = statbuf.st_size;
return p;
}
\ No newline at end of file
}
......@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef DIST_NET_RDMA_UTILS_H_
#define DIST_NET_RDMA_UTILS_H_
#ifndef DIST_UTILS_H_
#define DIST_UTILS_H_
#include <stddef.h>
......@@ -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);
void *ShmMap(int shm_fd, size_t *size);
#endif // DIST_NET_RDMA_UTILS_H_
\ No newline at end of file
#endif // DIST_UTILS_H_
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