X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fpacket.h;h=cc117f66eae2e4e93c1f0612bbae04319d76ae8a;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hp=f508b3fd6324cc14c37b42229356db9451c37a77;hpb=12179dea039515c06168c0037d048566a3f623de;p=debian%2Famanda diff --git a/common-src/packet.h b/common-src/packet.h index f508b3f..cc117f6 100644 --- a/common-src/packet.h +++ b/common-src/packet.h @@ -42,14 +42,15 @@ typedef struct { /* * Initialize a packet */ +void pkt_init_empty(pkt_t *pkt, pktype_t type); void pkt_init(pkt_t *, pktype_t, const char *, ...) - __attribute__ ((format (printf, 3, 4))); + G_GNUC_PRINTF(3,4); /* * Append data to a packet */ void pkt_cat(pkt_t *, const char *, ...) - __attribute__ ((format (printf, 2, 3))); + G_GNUC_PRINTF(2,3); /* * Convert the packet type to and from a string