To improve compatibility with OpenBSD.
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
**************************************************************************/
#include <assert.h>
-#include <error.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "testlib.h"
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)
**************************************************************************/
#include <assert.h>
-#include <error.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "testlib.h"
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)
#include <assert.h>
#include <stdio.h>
#include <string.h>
-#include <error.h>
+#include <stdlib.h>
#include "testlib.h"
#define BLOCK_WIDTH 8
}
if (fail)
- error
- (
- 1, 0,
+ {
+ fprintf(
+ stderr,
"Bad argument.\n"
"\n"
"Usage: %s [options]\n"
"\t-p\tPrompt for quit\n",
argv[0]
);
+ exit(1);
+ }
}
static void Gradient(short *block, unsigned int start, unsigned int stop, int horizontal, unsigned int intra_unsigned)
))
{
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)
**************************************************************************/
#include <assert.h>
-#include <error.h>
#include <stdio.h>
#include <stdlib.h>
#include "testlib.h"
))
{
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)
**************************************************************************/
#include <assert.h>
-#include <error.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "testlib.h"
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)