Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] [RFC] [Patch] printf format codes
Home

[Freeciv-Dev] [RFC] [Patch] printf format codes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [RFC] [Patch] printf format codes
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Feb 2002 09:04:49 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

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

Attachment: format_code1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [RFC] [Patch] printf format codes, Raimar Falke <=