--- deliantra/server/include/network.h 2009/10/12 14:00:58 1.24 +++ deliantra/server/include/network.h 2009/11/07 18:30:05 1.26 @@ -40,12 +40,15 @@ * talking about the same values. */ - #ifndef NETWORK_H #define NETWORK_H +//+GPL + #include +#include "compiler.h" + /* Maximum size of any packet we expect. * * The size must be the same in the server and the client (stupid). @@ -152,6 +155,7 @@ /* Flags for the item command */ enum {a_none, a_readied, a_wielded, a_worn, a_active, a_applied}; + #define F_APPLIED 0x000F #define F_LOCATION 0x00F0 #define F_UNPAID 0x0200 @@ -195,6 +199,8 @@ #define SOUND_NORMAL 0 #define SOUND_SPELL 1 +//-GPL + struct data { unsigned int len; @@ -298,7 +304,7 @@ void vprintf (const char *format, va_list ap); - void printf (const char *format, ...) + void printf (const char *format, ...) attribute ((format (printf, 2, 3))) { va_list ap; va_start (ap, format);