| |
| |
| RCS file: /cvsroot/bluez/utils/common/oui.c,v |
| retrieving revision 1.2 |
| diff -u -p -r1.2 oui.c |
| |
| |
| @@ -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) |
| { |
| @@ -46,14 +46,9 @@ char *ouitocomp(const char *oui) |
| char *str, *map, *off, *end; |
| int fd; |
| |
| - fd = open("oui.txt", O_RDONLY); |
| + fd = open(OUIFILE, 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; |
| } |
| |
| if (fstat(fd, &st) < 0) { |