]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Solaris doesn't really have a machine/arch afaik.
authorRoy Marples <roy@marples.name>
Tue, 26 Jul 2016 21:11:32 +0000 (21:11 +0000)
committerRoy Marples <roy@marples.name>
Tue, 26 Jul 2016 21:11:32 +0000 (21:11 +0000)
if-sun.c

index 046a1cd41a1a9ec93e9cd9eebd9ce8af4b291480..00c839873257b83eadb2c9d7628d1f4f1324302d 100644 (file)
--- a/if-sun.c
+++ b/if-sun.c
@@ -188,13 +188,12 @@ if_vimaster(__unused const struct dhcpcd_ctx *ctx, __unused const char *ifname)
 }
 
 int
-if_machinearch(char *str, size_t len)
+if_machinearch(__unused char *str, __unused size_t len)
 {
 
-       UNUSED(str);
-       UNUSED(len);
-       errno = ENOTSUP;
-       return -1;
+       /* There is no extra data really.
+        * isainfo -v does return amd64, but also i386. */
+       return 0;
 }
 
 struct linkwalk {