changeset 5504:4d665b4bede5 draft

Linux: fix compile
author Roy Marples <roy@marples.name>
date Wed, 07 Oct 2020 16:21:26 +0100
parents 18a7063f70c1
children 5aedb51585b6
files src/if.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if.c	Wed Oct 07 15:31:35 2020 +0100
+++ b/src/if.c	Wed Oct 07 16:21:26 2020 +0100
@@ -423,12 +423,14 @@
 		break;
 	default:
 		if (active) {
+			int i;
+
 			if (if_noconf)
 				active = IF_INACTIVE;
 			i = active ? LOG_WARNING : LOG_DEBUG;
 			logmessage(i, "%s: unsupported"
 			    " interface type 0x%.2x",
-			    ifp->name, ifp->hw_type);
+			    ifp->name, ifp->hwtype);
 		}
 		break;
 	}