diff mbox

[2/6] tests/*version: add missing string.h header

Message ID 1377808314-30699-3-git-send-email-emil.l.velikov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Emil Velikov Aug. 29, 2013, 8:31 p.m. UTC
Prodives memset() and strlen(), used in tests/setversion
tests/getversion respectively.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 tests/getversion.c | 1 +
 tests/setversion.c | 1 +
 2 files changed, 2 insertions(+)

Comments

Rob Clark Aug. 30, 2013, 3:23 p.m. UTC | #1
On Thu, Aug 29, 2013 at 4:31 PM, Emil Velikov <emil.l.velikov@gmail.com> wrote:
> Prodives memset() and strlen(), used in tests/setversion
> tests/getversion respectively.
>
> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

Reviewed-by: Rob Clark <robdclark@gmail.com>

> ---
>  tests/getversion.c | 1 +
>  tests/setversion.c | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/tests/getversion.c b/tests/getversion.c
> index 711d376..53d1d35 100644
> --- a/tests/getversion.c
> +++ b/tests/getversion.c
> @@ -25,6 +25,7 @@
>   *
>   */
>
> +#include <string.h>
>  #include "drmtest.h"
>
>  /**
> diff --git a/tests/setversion.c b/tests/setversion.c
> index 3aaf7cc..5a5d01c 100644
> --- a/tests/setversion.c
> +++ b/tests/setversion.c
> @@ -26,6 +26,7 @@
>   */
>
>  #include <limits.h>
> +#include <string.h>
>  #include "drmtest.h"
>
>  /**
> --
> 1.8.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/tests/getversion.c b/tests/getversion.c
index 711d376..53d1d35 100644
--- a/tests/getversion.c
+++ b/tests/getversion.c
@@ -25,6 +25,7 @@ 
  *
  */
 
+#include <string.h>
 #include "drmtest.h"
 
 /**
diff --git a/tests/setversion.c b/tests/setversion.c
index 3aaf7cc..5a5d01c 100644
--- a/tests/setversion.c
+++ b/tests/setversion.c
@@ -26,6 +26,7 @@ 
  */
 
 #include <limits.h>
+#include <string.h>
 #include "drmtest.h"
 
 /**