summaryrefslogtreecommitdiff
path: root/fstobdf.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:57 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:57 +0000
commit6f1b843c87395c617f48793607797face574a188 (patch)
tree9824ebf56b6f54fa1c60ceb6113c7fcacd7cee5f /fstobdf.c
parent33b0317bc68027d8814f264a45eaf19c68270cd3 (diff)
Diffstat (limited to 'fstobdf.c')
-rw-r--r--fstobdf.c34
1 files changed, 15 insertions, 19 deletions
diff --git a/fstobdf.c b/fstobdf.c
index 48d560a..bc300fa 100644
--- a/fstobdf.c
+++ b/fstobdf.c
@@ -43,27 +43,29 @@ in this Software without prior written authorization from The Open Group.
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
* THIS SOFTWARE.
*/
+/* $XFree86: xc/programs/fstobdf/fstobdf.c,v 1.6 2001/12/14 20:00:46 dawes Exp $ */
#include <stdio.h>
-#include "FSlib.h"
-
-extern Bool EmitHeader();
-extern Bool EmitProperties();
-extern Bool EmitCharacters();
-extern Bool EmitTrailer();
-
+#include <stdlib.h>
+#include <string.h>
+#include "fstobdf.h"
static void
-usage(progName)
- char *progName;
+usage(char *progName)
{
fprintf(stderr, "Usage: %s [-s <font server>] -fn <font name>\n",
progName);
exit(0);
}
-main(argc, argv)
- int argc;
- char **argv;
+static void
+Fail(char *progName)
+{
+ fprintf(stderr, "%s: unable to dump font\n", progName);
+ exit(1);
+}
+
+int
+main(int argc, char *argv[])
{
FSServer *fontServer;
Font fontID,
@@ -126,11 +128,5 @@ main(argc, argv)
FSFree((char *) propOffsets);
FSFree((char *) propData);
-}
-
-Fail(progName)
- char *progName;
-{
- fprintf(stderr, "%s: unable to dump font\n", progName);
- exit(1);
+ exit (0);
}