Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xorg-server/dist/hw/xfree86/common use xf86Ad...



details:   https://anonhg.NetBSD.org/xsrc/rev/3f51e874bba3
branches:  trunk
changeset: 10058:3f51e874bba3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Dec 31 10:35:46 2018 +0000

description:
use xf86AddMatchedDriver().

diffstat:

 external/mit/xorg-server/dist/hw/xfree86/common/xf86AutoConfig.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 0dcc794a46a4 -r 3f51e874bba3 external/mit/xorg-server/dist/hw/xfree86/common/xf86AutoConfig.c
--- a/external/mit/xorg-server/dist/hw/xfree86/common/xf86AutoConfig.c  Mon Dec 31 10:21:50 2018 +0000
+++ b/external/mit/xorg-server/dist/hw/xfree86/common/xf86AutoConfig.c  Mon Dec 31 10:35:46 2018 +0000
@@ -239,11 +239,11 @@
 /* XXXMRG:  xorg-server 1.10/1.18 -- merge into xf86PlatformMatchDriver()? */
 #ifdef __NetBSD__
 #if defined(__shark)
-    matches[i++] = xnfstrdup("chips");
-    matches[i++] = xnfstrdup("igs");
+    xf86AddMatchedDriver(md, "chips");
+    xf86AddMatchedDriver(md, "igs");
 #elif defined(__sgimips)
-    matches[i++] = xnfstrdup("crime");
-    matches[i++] = xnfstrdup("newport");
+    xf86AddMatchedDriver(md, "crime");
+    xf86AddMatchedDriver(md, "newport");
 #elif defined(__sparc) || defined(__sparc64)
     /* dig through /dev/fb* */
     {
@@ -269,7 +269,7 @@
            if (sbusDeviceTable[dev].fbType == fbt.fb_type) {
                xf86Msg(X_ERROR,"%s: found %s\n", __func__,
                    sbusDeviceTable[dev].driverName);
-               matches[i++] = xnfstrdup(sbusDeviceTable[dev].driverName);
+               xf86AddMatchedDriver(md, sbusDeviceTable[dev].driverName);
            }
        }
     }



Home | Main Index | Thread Index | Old Index