* [LTP] [PATCH] dirtyc0w: Include stdint.h
@ 2017-06-09 16:35 Khem Raj
2017-06-13 10:38 ` Jan Stancek
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2017-06-09 16:35 UTC (permalink / raw)
To: ltp
uintptr_t is defined in stdint.h
Fixes
| dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'?
| lseek(mfd, (uintptr_t) map, SEEK_SET);
| ^~~~~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
index 5328a9bc4..49abdd6ba 100644
--- a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
+++ b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
@@ -23,6 +23,7 @@
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
+#include <stdint.h>
#include <pwd.h>
#include "tst_safe_pthread.h"
--
2.13.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] dirtyc0w: Include stdint.h
2017-06-09 16:35 [LTP] [PATCH] dirtyc0w: Include stdint.h Khem Raj
@ 2017-06-13 10:38 ` Jan Stancek
0 siblings, 0 replies; 2+ messages in thread
From: Jan Stancek @ 2017-06-13 10:38 UTC (permalink / raw)
To: ltp
----- Original Message -----
> uintptr_t is defined in stdint.h
>
> Fixes
> | dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this
> | function); did you mean 'intptr_t'?
> | lseek(mfd, (uintptr_t) map, SEEK_SET);
> | ^~~~~~~~~
Pushed.
Thanks,
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-13 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-09 16:35 [LTP] [PATCH] dirtyc0w: Include stdint.h Khem Raj
2017-06-13 10:38 ` Jan Stancek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox