[Freeciv-Dev] [RFC] [Patch] printf format codes
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
The attached patch makes splint happy wrt format codes. The problems
can be sorted into the following categories:
- %d but short arg (we can use %hd here)
- %d but char arg
- %d but enum arg
- other
For the last two a cast to int is needed IMHO (if these things are
changed). Comments?
Nevertheless it also found one real bug in client/gui-gtk/mapview.c.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"The very concept of PNP is a lovely dream that simply does not translate to
reality. The confusion of manually doing stuff is nothing compared to the
confusion of computers trying to do stuff and getting it wrong, which they
gleefully do with great enthusiasm."
-- Jinx Tigr in the SDM
format_code1.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] [RFC] [Patch] printf format codes,
Raimar Falke <=
|
|