2007-10-05 [colin] 3.0.2cvs11
[claws.git] / src / common / mgutils.c
index fe3548f4b3ffacc1cb232207549b5288c7355a61..d256ffcc394d9130aa36d25870aaaea21d5baba0 100644 (file)
 void mgu_print_list( GSList *list, FILE *stream ) {
        GSList *node = list;
        while( node ) {
-               fprintf( stream, "\t- >%s<\n", (gchar *)node->data );
+               int r = fprintf( stream, "\t- >%s<\n", (gchar *)node->data );
+               if (r < 0) {
+                       perror("fprintf");
+                       break;
+               }
                node = g_slist_next( node );
        }
 }
@@ -45,7 +49,11 @@ void mgu_print_list( GSList *list, FILE *stream ) {
 void mgu_print_dlist( GList *list, FILE *stream ) {
        GList *node = list;
        while( node ) {
-               fprintf( stream, "\t- >%s<\n", (gchar *)node->data );
+               int r = fprintf( stream, "\t- >%s<\n", (gchar *)node->data );
+               if (r < 0) {
+                       perror("fprintf");
+                       break;
+               }
                node = g_list_next( node );
        }
 }