comparison common-session.c @ 1122:aaf576b27a10

Merge pull request #13 from gazoo74/fix-warnings Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents 8e0280986710 c45d65392c1a
children 6aeadee3f16b
comparison
equal deleted inserted replaced
1087:1e486f368ec3 1122:aaf576b27a10
325 TRACE(("leave session_cleanup")) 325 TRACE(("leave session_cleanup"))
326 } 326 }
327 327
328 void send_session_identification() { 328 void send_session_identification() {
329 buffer *writebuf = buf_new(strlen(LOCAL_IDENT "\r\n") + 1); 329 buffer *writebuf = buf_new(strlen(LOCAL_IDENT "\r\n") + 1);
330 buf_putbytes(writebuf, LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n")); 330 buf_putbytes(writebuf, (const unsigned char *) LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n"));
331 writebuf_enqueue(writebuf, 0); 331 writebuf_enqueue(writebuf, 0);
332 } 332 }
333 333
334 static void read_session_identification() { 334 static void read_session_identification() {
335 /* max length of 255 chars */ 335 /* max length of 255 chars */