hal/drive_id ata.c, 1.2, 1.3 drive_id.c, 1.3, 1.4 scsi.c, 1.2, 1.3 util.c, 1.1, 1.2

Richard Hughes hughsient at freedesktop.org
Tue Sep 27 02:42:14 PDT 2005


Update of /cvs/hal/hal/drive_id
In directory gabe:/tmp/cvs-serv20732/drive_id

Modified Files:
	ata.c drive_id.c scsi.c util.c 
Log Message:
Replace kernel-style datatypes (like _u8 and __s16) with their appropriate standard datatype.

Index: ata.c
===================================================================
RCS file: /cvs/hal/hal/drive_id/ata.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ata.c	26 Jul 2005 04:40:42 -0000	1.2
+++ ata.c	27 Sep 2005 09:42:12 -0000	1.3
@@ -45,7 +45,7 @@
 #include <sys/stat.h>
 #include <scsi/sg.h>
 #include <linux/hdreg.h>
-#include <asm/types.h>
+#include <stdint.h>
 
 #include "drive_id.h"
 #include "logging.h"

Index: drive_id.c
===================================================================
RCS file: /cvs/hal/hal/drive_id/drive_id.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- drive_id.c	12 Aug 2005 22:28:30 -0000	1.3
+++ drive_id.c	27 Sep 2005 09:42:12 -0000	1.4
@@ -45,7 +45,7 @@
 #include <sys/stat.h>
 #include <scsi/sg.h>
 #include <linux/hdreg.h>
-#include <asm/types.h>
+#include <stdint.h>
 
 #include "drive_id.h"
 #include "logging.h"
@@ -111,7 +111,7 @@
 struct drive_id *drive_id_open_dev_t(dev_t devt)
 {
 	struct drive_id *id;
-	__u8 tmp_node[DRIVE_ID_PATH_MAX];
+	uint8_t tmp_node[DRIVE_ID_PATH_MAX];
 
 	snprintf((char *) tmp_node, DRIVE_ID_PATH_MAX,
 		 "/dev/.drive_id-%u-%u-%u", getpid(), major(devt), minor(devt));

Index: scsi.c
===================================================================
RCS file: /cvs/hal/hal/drive_id/scsi.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- scsi.c	26 Jul 2005 04:40:42 -0000	1.2
+++ scsi.c	27 Sep 2005 09:42:12 -0000	1.3
@@ -45,7 +45,7 @@
 #include <sys/stat.h>
 #include <scsi/sg.h>
 #include <linux/hdreg.h>
-#include <asm/types.h>
+#include <stdint.h>
 
 #include "drive_id.h"
 #include "logging.h"

Index: util.c
===================================================================
RCS file: /cvs/hal/hal/drive_id/util.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- util.c	7 Feb 2005 21:24:16 -0000	1.1
+++ util.c	27 Sep 2005 09:42:12 -0000	1.2
@@ -34,7 +34,7 @@
 #include <ctype.h>
 #include <fcntl.h>
 #include <sys/stat.h>
-#include <asm/types.h>
+#include <stdint.h>
 
 #include "drive_id.h"
 #include "logging.h"




More information about the hal-commit mailing list