linux/tools/net/ynl/samples
Jakub Kicinski 3d8806f37d tools: ynl: error check scanf() in a sample
Someone reported on GitHub that the YNL NIPA test is failing
when run locally. The test builds the tools, and it hits:

  netdev.c:82:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  82 | scanf("%d", &ifindex);

I can't repro this on my setups but error seems clear enough.

Link: https://github.com/linux-netdev/nipa/discussions/37
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://patch.msgid.link/20240828173609.2951335-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-08-29 12:43:29 -07:00
..
.gitignore tools: ynl: generate code for ovs families 2024-02-02 21:16:38 -08:00
devlink.c
ethtool.c tools: ynl: add sample for ethtool 2023-06-12 11:01:03 +01:00
Makefile tools: ynl: add distclean to .PHONY in all makefiles 2024-03-06 12:05:10 +00:00
netdev.c tools: ynl: error check scanf() in a sample 2024-08-29 12:43:29 -07:00
ovs.c tools: ynl: generate code for ovs families 2024-02-02 21:16:38 -08:00
page-pool.c ynl: samples: fix recycling rate calculation 2024-03-11 10:22:06 +00:00