diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:57 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:57 +0000 |
commit | 6f1b843c87395c617f48793607797face574a188 (patch) | |
tree | 9824ebf56b6f54fa1c60ceb6113c7fcacd7cee5f /props.c | |
parent | 33b0317bc68027d8814f264a45eaf19c68270cd3 (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'props.c')
-rw-r--r-- | props.c | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -43,14 +43,14 @@ 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/props.c,v 1.6 2001/12/14 20:00:46 dawes Exp $ */ #include <stdio.h> -#include "FSlib.h" +#include <string.h> +#include "fstobdf.h" static char * -AddQuotes(string, length) - unsigned char *string; - int length; +AddQuotes(unsigned char *string, int length) { static unsigned char new[256] = "\""; unsigned char *cp; @@ -68,12 +68,11 @@ AddQuotes(string, length) } Bool -EmitProperties(outFile, fontHeader, propInfo, propOffsets, propData) - FILE *outFile; - FSXFontInfoHeader *fontHeader; - FSPropInfo *propInfo; - FSPropOffset *propOffsets; - unsigned char *propData; +EmitProperties(FILE *outFile, + FSXFontInfoHeader *fontHeader, + FSPropInfo *propInfo, + FSPropOffset *propOffsets, + unsigned char *propData) { int nProperties; FSPropOffset *property; @@ -87,10 +86,10 @@ EmitProperties(outFile, fontHeader, propInfo, propOffsets, propData) nProperties = propInfo->num_offsets; for (property = &propOffsets[0]; nProperties--; property++) { - unsigned char *name; + char *name; int length; - name = propData + property->name.position; + name = (char *)propData + property->name.position; length = property->name.length; if ((length == 12) && (!strncmp(name, "DEFAULT_CHAR", 12))) |