Index: ggate.h =================================================================== RCS file: /private/FreeBSD/src/sbin/ggate/shared/ggate.h,v retrieving revision 1.1 diff -u -p -r1.1 ggate.h --- ggate.h 30 Apr 2004 16:13:45 -0000 1.1 +++ ggate.h 3 Feb 2005 08:26:04 -0000 @@ -46,7 +46,7 @@ extern int g_gate_verbose; struct g_gate_cinit { char gc_path[PATH_MAX + 1]; uint8_t gc_flags; -}; +} __packed; /* Server's initial packet. */ struct g_gate_sinit { @@ -54,7 +54,7 @@ struct g_gate_sinit { uint64_t gs_mediasize; uint32_t gs_sectorsize; uint16_t gs_error; -}; +} __packed; /* Control struct. */ struct g_gate_hdr { @@ -62,7 +62,7 @@ struct g_gate_hdr { uint64_t gh_offset; /* device offset */ uint32_t gh_length; /* size of block */ int16_t gh_error; /* error value (0 if ok) */ -}; +} __packed; void g_gate_vlog(int priority, const char *message, va_list ap); void g_gate_log(int priority, const char *message, ...);