Revision: 2181 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2181&view=re... Author: cesspit Date: 2011-08-28 15:40:56 +0000 (Sun, 28 Aug 2011) Log Message: ----------- debugger: casting and shadowing gcc warnings
Modified Paths: -------------- trunk/geany-plugins/debugger/src/dconfig.c
Modified: trunk/geany-plugins/debugger/src/dconfig.c =================================================================== --- trunk/geany-plugins/debugger/src/dconfig.c 2011-08-28 15:06:23 UTC (rev 2180) +++ trunk/geany-plugins/debugger/src/dconfig.c 2011-08-28 15:40:56 UTC (rev 2181) @@ -71,15 +71,15 @@ int readline(FILE *file, gchar *buffer, int buffersize) { gchar c; - int read = 0; + int read_count = 0; while (buffersize && fread(&c, 1, 1, file) && '\n' != c) { - buffer[read++] = c; + buffer[read_count++] = c; buffersize--; } - buffer[read] = '\0'; + buffer[read_count] = '\0';
- return read; + return read_count; }
/* @@ -351,5 +351,5 @@
g_free(config_file);
- return (gboolean)config; + return config ? TRUE : FALSE; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.