Mercurial > hg > freeDiameter
comparison freeDiameter/p_psm.c @ 136:abd3c441780b
Fix 64 bits warnings
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 16 Dec 2009 16:51:42 +0900 |
parents | 50d1dc19b221 |
children | 4356de61174d |
comparison
equal
deleted
inserted
replaced
135:bbb8ddba4c85 | 136:abd3c441780b |
---|---|
296 pthread_cleanup_push( cleanup_setstate, arg ); | 296 pthread_cleanup_push( cleanup_setstate, arg ); |
297 | 297 |
298 /* Set the thread name */ | 298 /* Set the thread name */ |
299 { | 299 { |
300 char buf[48]; | 300 char buf[48]; |
301 sprintf(buf, "PSM/%.*s", sizeof(buf) - 5, peer->p_hdr.info.pi_diamid); | 301 sprintf(buf, "PSM/%.*s", (int)sizeof(buf) - 5, peer->p_hdr.info.pi_diamid); |
302 fd_log_threadname ( buf ); | 302 fd_log_threadname ( buf ); |
303 } | 303 } |
304 | 304 |
305 /* The state machine starts in CLOSED state */ | 305 /* The state machine starts in CLOSED state */ |
306 peer->p_hdr.info.runtime.pir_state = STATE_CLOSED; | 306 peer->p_hdr.info.runtime.pir_state = STATE_CLOSED; |