This code should be rewritten to avoid fixed sized types.
**************************************************************************/
typedef struct {
- ac_uint4 bom;
- ac_uint4 cnt;
+ ac_uint2 bom;
+ ac_uint2 cnt;
union {
ac_uint4 bytes;
ac_uint2 len[2];
#include "ldap_config.h"
#include <stdio.h>
+#include <ac/bytes.h>
#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
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];
/*
* Write the header.
*/
- fwrite((char *) hdr, sizeof(unsigned short), 2, out);
+ fwrite((char *) hdr, sizeof(ac_uint4), 2, out);
/*
* Write the byte count.