W dniu 21 września 2009 17:46 użytkownik Daniel Dawid Majewski <[email protected]> napisał: > --- bluez-4.53/src/oui.c.oryg 2009-09-03 05:58:36.000000000 +0200 > +++ bluez-4.53/src/oui.c 2009-09-21 17:33:37.000000000 +0200 > @@ -38,7 +38,7 @@ > > /* http://standards.ieee.org/regauth/oui/oui.txt */ > > -#define OUIFILE "/var/lib/misc/oui.txt" > +#define OUIFILE "/usr/share/hwdata/oui.txt" > > char *ouitocomp(const char *oui) > { > @@ -48,12 +48,7 @@ > > fd = open("oui.txt", O_RDONLY); > if (fd < 0) { > - fd = open(OUIFILE, O_RDONLY); > - if (fd < 0) { > - fd = open("/usr/share/misc/oui.txt", O_RDONLY); > - if (fd < 0) > - return NULL; > - } > + return NULL;
To, to mi na poprawne nie wygląda. Pierwsze "fd=" zmień z oui.txt na OUIFILE które zdefiniowałeś i problem zjedzony, nie? -- "I'm living proof if you do one thing right in your career, you can coast for a long time. A LOOOOONG time." -Guy Kawasaki _______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
