diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-04-10 14:30:13 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-04-10 14:30:13 +0200 |
commit | 96cb3a8695e35890d2f10aa508c33f2ebac40d35 (patch) | |
tree | 14b4efeda679962673878dd4310b49e74754a425 /test | |
parent | b63f8e22754148e859b2ebf463353abfb9a17dbe (diff) |
Remove fgets and replace by getline.
Diffstat (limited to 'test')
-rw-r--r-- | test/history-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/history-test.c b/test/history-test.c index 75c5d7ac..2a489ac3 100644 --- a/test/history-test.c +++ b/test/history-test.c @@ -79,8 +79,8 @@ static void history_test ( void ) TASSERT ( retv != NULL ); TASSERT ( length == 25 ); for ( unsigned int in = 0; in < 24; in++ ) { - char *p = g_strdup_printf ( "aap%i", in+2); - TASSERT ( g_strcmp0(retv[in], p) == 0); + char *p = g_strdup_printf ( "aap%i", in + 2 ); + TASSERT ( g_strcmp0 ( retv[in], p ) == 0 ); g_free ( p ); } |