On Fri, Oct 10, 2008 at 12:59:31PM -0400, Igor Tandetnik scratched on the wall: > Shaun R. <[EMAIL PROTECTED]> wrote: > > I'm getting this warning when doing the following > > > > warning: pointer targets in passing argument 2 of 'strcpy' differ in > > signedness > > > > strcpy(result->ip_address,sqlite3_column_text(plineInfo, 2)); > > sqlite3_column_text returns unsigned char*. Most CRT functions expect > char* (on most implementations, plain char is signed).
Igor brings up a good point. It is true that on most systems "char" is signed, but it is worth remembering that this is not universally true. This is why "char" and "signed char" are actually different types in C, unlike "int" and "signed int", which are assumed to be the exact same type. Something to remember when trying to figure out strange compiler warnings. -j -- Jay A. Kreibich < J A Y @ K R E I B I.C H > "Our opponent is an alien starship packed with atomic bombs. We have a protractor." "I'll go home and see if I can scrounge up a ruler and a piece of string." --from Anathem by Neal Stephenson _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users