Endianness check
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
* 0x0000 4 bytes Nodelist file date
|
||||
* 0x0004 4 bytes Nodelist file size
|
||||
* 0x0008 4 bytes Total number of entries in index file
|
||||
* 0x000c 4 bytes Unused
|
||||
* 0x000c 4 bytes ENDIANNES MARK
|
||||
*
|
||||
* Nodelist index is an array of next entries:
|
||||
*
|
||||
@@ -123,6 +123,7 @@ typedef struct nodelist
|
||||
char name_index[BF_MAXPATH+1];
|
||||
char name_nodelist[BF_MAXPATH+1];
|
||||
long entries;
|
||||
long endian;
|
||||
}
|
||||
s_nodelist;
|
||||
|
||||
|
||||
@@ -189,8 +189,10 @@ char *buffer_putlong(char *buffer, long val);
|
||||
char *buffer_putint(char *buf, int val);
|
||||
long buffer_getlong(const char *buf);
|
||||
int buffer_getint(const char *buf);
|
||||
void swap_long(char *buffer);
|
||||
void printf_usage(const char *ident, const char *fmt, ...);
|
||||
|
||||
|
||||
/* u_pkt.c */
|
||||
int pkt_createpacket(const char *pktname, const s_packet *pkt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user