[PATCH] [MEDIA] Use standard integer types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes compilation under FreeBSD.

Signed-off-by: Hans Petter Selasky <hps@xxxxxxxxxxx>
---
 utils/common/keymap.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/utils/common/keymap.h b/utils/common/keymap.h
index 99833827..dc198bc1 100644
--- a/utils/common/keymap.h
+++ b/utils/common/keymap.h
@@ -2,6 +2,8 @@
 #ifndef __KEYMAP_H
 #define __KEYMAP_H

+#include <stdint.h>
+
 struct keymap {
 	struct keymap *next;
 	char *name;
@@ -20,16 +22,16 @@ struct protocol_param {

 struct scancode_entry {
 	struct scancode_entry *next;
-	u_int64_t scancode;
+	uint64_t scancode;
 	char *keycode;
 };

 struct raw_entry {
 	struct raw_entry *next;
-	u_int64_t scancode;
-	u_int32_t raw_length;
+	uint64_t scancode;
+	uint32_t raw_length;
 	char *keycode;
-	u_int32_t raw[1];
+	uint32_t raw[1];
 };

 void free_keymap(struct keymap *map);
--
2.27.0



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux