libsmi/libsmi-0.4.8-parser.patch
OBS User autobuild 52558ccda0 Accepting request 49869 from network:utilities
Copy from network:utilities/libsmi based on submit request 49869 from user coolo

OBS-URL: https://build.opensuse.org/request/show/49869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsmi?expand=0&rev=8
2010-10-06 21:14:57 +00:00

15 lines
600 B
Diff

diff -uNr libsmi-0.4.8-orig/lib/parser-sming.y libsmi-0.4.8/lib/parser-sming.y
--- libsmi-0.4.8-orig/lib/parser-sming.y 2008-04-18 12:42:50.000000000 +0200
+++ libsmi-0.4.8/lib/parser-sming.y 2010-03-23 10:44:11.777122974 +0100
@@ -2161,8 +2161,8 @@
classPtr, thisParserPtr);
setAttributeParentType($$, smiHandle->typeBitsPtr);
if ($1) {
- setAttributeList($$, $1);
- for (p = $1; p; p = p->nextPtr)
+ setAttributeList($$, (void *)$1);
+ for (p = (void *)$1; p; p = (void *)p->nextPtr)
((NamedNumber *)(p->ptr))->typePtr = (Type*)$$;
}