Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/libdrm/dist Let's get the sense of strncmp co...
details: https://anonhg.NetBSD.org/xsrc/rev/a70891afd641
branches: trunk
changeset: 9988:a70891afd641
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Sep 09 03:24:46 2018 +0000
description:
Let's get the sense of strncmp correct, shall we?
PR pkg/51795
PR kern/51786
XXX pullup-7
XXX pullup-8
diffstat:
external/mit/libdrm/dist/xf86drm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r df3ef1c40af7 -r a70891afd641 external/mit/libdrm/dist/xf86drm.c
--- a/external/mit/libdrm/dist/xf86drm.c Sun Sep 09 03:05:36 2018 +0000
+++ b/external/mit/libdrm/dist/xf86drm.c Sun Sep 09 03:24:46 2018 +0000
@@ -3055,7 +3055,7 @@
/* Find a string we know about; otherwise -EINVAL. */
ret = -EINVAL;
- if (strncmp(buf, "pci:", 4) != 0)
+ if (strncmp(buf, "pci:", 4) == 0)
ret = DRM_BUS_PCI;
/* We're done with the bus id. */
Home |
Main Index |
Thread Index |
Old Index