/*
- * udev_db.c
- *
* Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
* Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org>
*
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
- * 675 Mass Ave, Cambridge, MA 02139, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include <string.h>
#include <errno.h>
#include <dirent.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include "udev.h"
struct stat stats;
char filename[PATH_SIZE];
char line[PATH_SIZE];
- unsigned int major, minor;
+ unsigned int maj, min;
char *bufline;
char *buf;
size_t bufsize;
count = sizeof(line);
memcpy(line, &bufline[2], count-2);
line[count-2] = '\0';
- sscanf(line, "%u:%u", &major, &minor);
- udev->devt = makedev(major, minor);
+ sscanf(line, "%u:%u", &maj, &min);
+ udev->devt = makedev(maj, min);
break;
case 'S':
if (count > sizeof(line))