Skip to content

Commit

Permalink
msg/async/dpdk/net: fix argument naming
Browse files Browse the repository at this point in the history
Fix for:

[src/msg/async/dpdk/net.h:120] -> [src/msg/async/dpdk/net.cc:42]:
 (warning) Function 'interface' argument order different:
 declaration 'cct, dev, c' definition 'c, dev, center'

Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Jun 12, 2018
1 parent 1f976a7 commit f1b4a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/msg/async/dpdk/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#undef dout_prefix
#define dout_prefix *_dout << "net "

interface::interface(CephContext *c, std::shared_ptr<DPDKDevice> dev, EventCenter *center)
: cct(c), _dev(dev),
interface::interface(CephContext *cct, std::shared_ptr<DPDKDevice> dev, EventCenter *center)
: cct(cct), _dev(dev),
_rx(_dev->receive(
center->get_id(),
[center, this] (Packet p) {
Expand Down
2 changes: 1 addition & 1 deletion src/msg/async/dpdk/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class interface {
private:
int dispatch_packet(EventCenter *c, Packet p);
public:
explicit interface(CephContext *cct, std::shared_ptr<DPDKDevice> dev, EventCenter *c);
explicit interface(CephContext *cct, std::shared_ptr<DPDKDevice> dev, EventCenter *center);
ethernet_address hw_address() { return _hw_address; }
const struct hw_features& get_hw_features() const { return _hw_features; }
subscription<Packet, ethernet_address> register_l3(
Expand Down

0 comments on commit f1b4a15

Please sign in to comment.