[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] use proper printf rather than ugly cast in coreapi

From: Mike Frysinger
Subject: [Linphone-developers] use proper printf rather than ugly cast in coreapi/linphonecore.c
Date: Wed, 2 Jan 2008 13:40:32 -0500

it looks like in order to get rid of a warning, someone did:
snprintf(clen,sizeof(clen),"%u",(unsigned int)strlen(dtmf_body));
that's just silly ... strlen returns a size_t, not an unsigned int.
so just use a proper printf format string and everything is fine:

Attachment: linphone-coreapi-printf.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]