summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-05-14 03:21:23 +0000
committerchristos <christos@NetBSD.org>2006-05-14 03:21:23 +0000
commit695ddc44ddb57d8fd3de6c101fb48228de204833 (patch)
tree9a3c932997e0e392a4dd5524dd4a87ad7a950481
parent260ec964da59b9e72f8de7b2a0a6178f361c1c86 (diff)
downloadbsdgames-darwin-695ddc44ddb57d8fd3de6c101fb48228de204833.tar.gz
bsdgames-darwin-695ddc44ddb57d8fd3de6c101fb48228de204833.tar.zst
bsdgames-darwin-695ddc44ddb57d8fd3de6c101fb48228de204833.zip
Don't use iostream just for the usage message. Use stdio instead.
-rw-r--r--dab/main.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dab/main.cc b/dab/main.cc
index 73250709..247e3407 100644
--- a/dab/main.cc
+++ b/dab/main.cc
@@ -1,4 +1,4 @@
-/* $NetBSD: main.cc,v 1.3 2005/07/02 15:48:03 jdc Exp $ */
+/* $NetBSD: main.cc,v 1.4 2006/05/14 03:21:23 christos Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -40,9 +40,9 @@
* main.C: Main dots program
*/
#include "defs.h"
-RCSID("$NetBSD: main.cc,v 1.3 2005/07/02 15:48:03 jdc Exp $")
+RCSID("$NetBSD: main.cc,v 1.4 2006/05/14 03:21:23 christos Exp $")
-#include <iostream>
+#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
@@ -62,8 +62,8 @@ static void usage(char* pname)
p++;
else
p = pname;
- std::cerr << "Usage: " << p
- << " [-w] [-p <c|h><c|h>] [-n <ngames>] [<ydim> [<xdim>]]" << std::endl;
+ (void)::fprintf(stderr,
+ "Usage: %s [-w] [-p <c|h><c|h>] [-n <ngames>] [<ydim> [<xdim>]]\n", p);
}
// Play a single game