The 'ifindex' argument is not a pointer, so no need for NONNULL in prototype
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
src/util/virnetdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virnetdev.h b/src/util/virnetdev.h
index 01e9c5b..9c9daf1 100644
--- a/src/util/virnetdev.h
+++ b/src/util/virnetdev.h
@@ -158,7 +158,7 @@ int virNetDevSetName(const char *ifname, const char *newifname)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
char *virNetDevGetName(int ifindex)
- ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
+ ATTRIBUTE_RETURN_CHECK;
int virNetDevGetIndex(const char *ifname, int *ifindex)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
--
2.9.3