GNOME Bugzilla – Bug 414191
Type fixes for EContact ints
Last modified: 2013-09-14 16:49:48 UTC
Hi, While building evolution, I've noticed signedness warnings when filling structures such as EContactPhoto with g_set_file_contents(). For example: /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/bbdb/gaimbuddies.c:253: warning: pointer targets in passing argument 3 of 'g_file_get_contents' differ in signedness I believe the type to use for lengths of data fields should be gsize, not int, and the type to use for things like years, months etc. should be unsigned int, not int (well, unless you plan to add support for people born in year 42 BD :-) I'll attach a patch which achieves the proposed changes. Bye,
Created attachment 83803 [details] [review] Type fixes for int fields in e-contact.h
Oups, that's e-d-s stuff; sorry.
It seems reasonable, but do they harm ABI? /me is confused.
Hmm it wont.
Committed as r7737 in trunk: 2007-05-11 Loïc Minier <lool@dooz.org> * libebook/e-contact.h: Use gsize for length of data fields, not int; use unsigned int insted of int for year, month, and day. (#414191)