summaryrefslogtreecommitdiff
path: root/extras/ata_id
diff options
context:
space:
mode:
Diffstat (limited to 'extras/ata_id')
-rw-r--r--extras/ata_id/Makefile2
-rw-r--r--extras/ata_id/ata_id.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/extras/ata_id/Makefile b/extras/ata_id/Makefile
index ebf0f4e9b4..0a881fb194 100644
--- a/extras/ata_id/Makefile
+++ b/extras/ata_id/Makefile
@@ -33,7 +33,7 @@ all: $(PROG) $(MAN_PAGES)
$(QUIET) $(CC) -c $(CFLAGS) $< -o $@
$(PROG): %: $(HEADERS) %.o $(OBJS)
- $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIBSYSFS) $(LIB_OBJS)
+ $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIB_OBJS)
ifneq ($(STRIPCMD),)
$(QUIET) $(STRIPCMD) $@
endif
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index a97cc284cc..aedebff711 100644
--- a/extras/ata_id/ata_id.c
+++ b/extras/ata_id/ata_id.c
@@ -17,6 +17,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
+#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -24,8 +25,7 @@
#include <linux/types.h>
#include <linux/hdreg.h>
-#include "../../logging.h"
-#include "../../udev_utils.h"
+#include "../../udev.h"
#ifdef USE_LOG
void log_message(int priority, const char *format, ...)