# HG changeset patch # User Richard Laager # Date 1178376600 0 # Node ID 533ebd404184f0c8726edc0eea97fc1c35bdc2f5 # Parent b93b9994dc2fbc00cecb9ac1597b9203494d7bee Change the nat-pmp code to use glib's integer types instead of those from stdint.h. Also, remove the err.h #include which doesn't seem to be needed. diff -r b93b9994dc2f -r 533ebd404184 libpurple/nat-pmp.c --- a/libpurple/nat-pmp.c Sat May 05 19:15:44 2007 +0000 +++ b/libpurple/nat-pmp.c Sat May 05 14:50:00 2007 +0000 @@ -44,7 +44,6 @@ #include #include -#include #endif #include @@ -58,35 +57,35 @@ #define PMP_DEBUG 1 typedef struct { - uint8_t version; - uint8_t opcode; + guint8 version; + guint8 opcode; } PurplePmpIpRequest; typedef struct { - uint8_t version; - uint8_t opcode; /* 128 + n */ - uint16_t resultcode; - uint32_t epoch; - uint32_t address; + guint8 version; + guint8 opcode; /* 128 + n */ + guint16 resultcode; + guint32 epoch; + guint32 address; } PurplePmpIpResponse; typedef struct { - uint8_t version; - uint8_t opcode; + guint8 version; + guint8 opcode; char reserved[2]; - uint16_t privateport; - uint16_t publicport; - uint32_t lifetime; + guint16 privateport; + guint16 publicport; + guint32 lifetime; } PurplePmpMapRequest; struct _PurplePmpMapResponse { - uint8_t version; - uint8_t opcode; - uint16_t resultcode; - uint32_t epoch; - uint16_t privateport; - uint16_t publicport; - uint32_t lifetime; + guint8 version; + guint8 opcode; + guint16 resultcode; + guint32 epoch; + guint16 privateport; + guint16 publicport; + guint32 lifetime; }; typedef struct _PurplePmpMapResponse PurplePmpMapResponse; diff -r b93b9994dc2f -r 533ebd404184 libpurple/nat-pmp.h --- a/libpurple/nat-pmp.h Sat May 05 19:15:44 2007 +0000 +++ b/libpurple/nat-pmp.h Sat May 05 14:50:00 2007 +0000 @@ -31,7 +31,6 @@ #ifndef _PURPLE_NAT_PMP_H #define _PURPLE_NAT_PMP_H -#include #include #define PURPLE_PMP_LIFETIME 3600 /* 3600 seconds */