Use standard unsigned integer types
This commit is contained in:
@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
char buf[128];
|
||||
int fd, len;
|
||||
u_int16_t msglen;
|
||||
uint16_t msglen;
|
||||
|
||||
fd = make_connection();
|
||||
if (fd < 0)
|
||||
|
||||
@@ -35,7 +35,7 @@ typedef struct duplicheck_msg_t duplicheck_msg_t;
|
||||
*/
|
||||
struct duplicheck_msg_t {
|
||||
/** length of the identity following, in network order (excluding len). */
|
||||
u_int16_t len;
|
||||
uint16_t len;
|
||||
/** identity string, not null terminated */
|
||||
char identity[];
|
||||
} __attribute__((__packed__));
|
||||
|
||||
@@ -75,7 +75,7 @@ METHOD(duplicheck_notify_t, send_, void,
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
stream_t *stream;
|
||||
u_int16_t nlen;
|
||||
uint16_t nlen;
|
||||
char buf[512];
|
||||
int len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user