summaryrefslogtreecommitdiff
path: root/props.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
commit3e85e18c6e30520be07f9369866d8116ecb0fd87 (patch)
tree9824ebf56b6f54fa1c60ceb6113c7fcacd7cee5f /props.c
parent33b0317bc68027d8814f264a45eaf19c68270cd3 (diff)
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'props.c')
-rw-r--r--props.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/props.c b/props.c
index eaeb47f..d3dc92a 100644
--- a/props.c
+++ b/props.c
@@ -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)))