[PATCH] Fix bunch of printf warnings

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Thu Oct 23 12:39:21 UTC 2014


On Thu, Oct 23, 2014 at 10:24:57AM +0200, ☎ wrote:

> Good catch, I didn't notice it. Maybe we should just use size_t for all the length
> functions in libosmo*? That's what size_t was invented for after all :)

> > it looks like a candidate for ping-pong games on 32bit/64bit userland
> > on GNU/Linux. What is the type here? unsigned int - size_t?

I can't quote the ISO C specification. So what type is the result of
"unsigned int - size_t"? We have size_t, off_t, ptrdiff_t as potential
types. I don't know which is the right one. :)





More information about the OpenBSC mailing list