summaryrefslogtreecommitdiffstats
path: root/source/history.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2014-08-22 09:43:26 +0200
committerDave Davenport <qball@gmpclient.org>2014-08-22 09:43:26 +0200
commit86b7571e04b356651a1720788a8e0868905ba409 (patch)
treef86bef6ef9fa434ab5439098928385a848627080 /source/history.c
parent62d4f0cdad8ce1bbac6ad2279c707a92e36ee57e (diff)
Cleanup warnings.
* unused var and arguments.
Diffstat (limited to 'source/history.c')
-rw-r--r--source/history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/history.c b/source/history.c
index faacb001..779f6e1b 100644
--- a/source/history.c
+++ b/source/history.c
@@ -257,7 +257,7 @@ char ** history_get_list ( const char *filename, unsigned int *length )
// Lists are always short, so performance should not be an issue.
if ( ( *length ) > 0 ) {
retv = g_malloc ( ( ( *length ) + 1 ) * sizeof ( char * ) );
- for ( int iter = 0; iter < ( *length ); iter++ ) {
+ for ( unsigned int iter = 0; iter < ( *length ); iter++ ) {
retv[iter] = g_strdup ( list[iter]->name );
g_free ( list[iter] );
}