Commit ee705326 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

More 64-bit hacking...

This code should be rewritten to avoid fixed sized types.
parent 90f12747
......@@ -45,8 +45,8 @@
**************************************************************************/
typedef struct {
ac_uint4 bom;
ac_uint4 cnt;
ac_uint2 bom;
ac_uint2 cnt;
union {
ac_uint4 bytes;
ac_uint2 len[2];
......
......@@ -30,6 +30,7 @@
#include "ldap_config.h"
#include <stdio.h>
#include <ac/bytes.h>
#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
......@@ -1216,7 +1217,8 @@ static void
write_cdata(char *opath)
{
FILE *out;
unsigned long i, idx, bytes, nprops;
ac_uint4 bytes;
unsigned long i, idx, nprops;
unsigned short casecnt[2];
char path[BUFSIZ];
......@@ -1268,7 +1270,7 @@ write_cdata(char *opath)
/*
* Write the header.
*/
fwrite((char *) hdr, sizeof(unsigned short), 2, out);
fwrite((char *) hdr, sizeof(ac_uint4), 2, out);
/*
* Write the byte count.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment