More 64-bit hacking...

This code should be rewritten to avoid fixed sized types.
This commit is contained in:
Kurt Zeilenga 2002-07-25 15:00:31 +00:00
parent 90f127472d
commit ee705326d4
2 changed files with 6 additions and 4 deletions

View file

@ -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];

View file

@ -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.