]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Avoid C99 constructions
authorFrançois Revol <revol@free.fr>
Wed, 18 Dec 2013 13:11:42 +0000 (14:11 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 1 Nov 2014 15:19:08 +0000 (16:19 +0100)
This fixes building pciutils on Haiku.

Signed-off-by: François Revol <revol@free.fr>
ls-caps.c

index 276a94d6951781a2078da2458de507460d99d1cd..7de55ef5b6bdb2485b14a6450eebef7fa1c9267e 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1261,8 +1261,8 @@ show_caps(struct device *d, int where)
 
   if (get_conf_word(d, PCI_STATUS) & PCI_STATUS_CAP_LIST)
     {
-      where = get_conf_byte(d, where) & ~3;
       byte been_there[256];
+      where = get_conf_byte(d, where) & ~3;
       memset(been_there, 0, 256);
       while (where)
        {