aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
diff options
context:
space:
mode:
authorJonathan Gray <[email protected]>2014-08-31 03:43:18 +1000
committerEmil Velikov <[email protected]>2014-09-05 14:17:34 +0100
commitd3dee3df97e05f86792a1591a023f66ca195fb1c (patch)
treec0e800c81107b40607bda805e53ccbf1505e0d99 /src/gallium/state_trackers/xvmc/tests/test_subpicture.c
parent8bcd57a46ce9d4a960253fd89ad21bd3e1776f8b (diff)
st/xvmc/tests: avoid non portable error.h functions
To improve compatibility with OpenBSD. Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xvmc/tests/test_subpicture.c')
-rw-r--r--src/gallium/state_trackers/xvmc/tests/test_subpicture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xvmc/tests/test_subpicture.c b/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
index ae0bc8b5a73..57ba1c75138 100644
--- a/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
+++ b/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
@@ -26,7 +26,6 @@
**************************************************************************/
#include <assert.h>
-#include <error.h>
#include <stdio.h>
#include <stdlib.h>
#include "testlib.h"
@@ -87,7 +86,8 @@ int main(int argc, char **argv)
))
{
XCloseDisplay(display);
- error(1, 0, "Error, unable to find a good port.\n");
+ fprintf(stderr, "Error, unable to find a good port.\n");
+ exit(1);
}
if (is_overlay)