Skip to content
Permalink
Browse files

samples: net: dumb_http_server: Add net_pkt.h file inclusion

The function net_pkt_get_info() is found in net_pkt.h and not
in buf.h. This caused
"implicit declaration of function ‘net_pkt_get_info’"
warning if CONFIG_NET_BUF_POOL_USAGE was enabled.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar committed Mar 30, 2019
1 parent 3633951 commit 3d6ce30f2998da81e15ec3c88c71a1c1dd0d163d
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/net/sockets/dumb_http_server/src/socket_dumb_http.c
@@ -20,7 +20,7 @@
#include <net/socket.h>
#include <kernel.h>

#include <net/buf.h>
#include <net/net_pkt.h>

#endif

0 comments on commit 3d6ce30

Please sign in to comment.
You can’t perform that action at this time.