Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/string_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ static void format(void **) {
cpu_set_t set;
char buf[256];

CPU_ZERO(&set);

assert_errno_equal(cpuset_format(buf, sizeof(buf), NULL), EINVAL);
assert_errno_equal(cpuset_format(NULL, 0, &set), EINVAL);

CPU_ZERO(&set);
assert_errno_equal(cpuset_format(buf, sizeof(buf), &set), 0);
assert_string_equal(buf, "");

Expand Down
1 change: 0 additions & 1 deletion main/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <event2/listener.h>

#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions main/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <assert.h>
#include <fnmatch.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/queue.h>

static STAILQ_HEAD(, gr_api_handler) handlers = STAILQ_HEAD_INITIALIZER(handlers);
Expand Down
4 changes: 0 additions & 4 deletions modules/dhcp/cli/dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
#include <ecoli.h>
#include <libsmartcols.h>

#include <errno.h>
#include <stdio.h>
#include <string.h>

static cmd_status_t dhcp_enable_cmd(struct gr_api_client *c, const struct ec_pnode *p) {
const char *iface_name = arg_str(p, "IFACE");
struct gr_dhcp_start_req req;
Expand Down
2 changes: 0 additions & 2 deletions modules/infra/control/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <rte_ether.h>
#include <rte_hash.h>

#include <string.h>

struct vlan_key {
uint16_t parent_id;
uint16_t vlan_id;
Expand Down
1 change: 0 additions & 1 deletion modules/ip/control/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <arpa/inet.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/queue.h>

Expand Down
1 change: 0 additions & 1 deletion modules/ip/control/nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <rte_mempool.h>

#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/queue.h>

Expand Down
1 change: 0 additions & 1 deletion modules/ip6/control/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/queue.h>

Expand Down
1 change: 0 additions & 1 deletion modules/ip6/control/nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <rte_ip6.h>

#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/queue.h>

Expand Down