diff mbox

tests: Include string.h for strlen() and memset()

Message ID 1358511758-22217-1-git-send-email-thierry.reding@avionic-design.de (mailing list archive)
State New, archived
Headers show

Commit Message

Thierry Reding Jan. 18, 2013, 12:22 p.m. UTC
The setversion and getversion tests use these functions so make sure
they are included to avoid compiler warnings.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 tests/drmtest.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/drmtest.h b/tests/drmtest.h
index 55bb446..731d1a7 100644
--- a/tests/drmtest.h
+++ b/tests/drmtest.h
@@ -27,6 +27,7 @@ 
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <assert.h>
 #include <errno.h>