diff src/util/logview.c @ 6940:414c9d631a81 HEAD

Replaced t_push/t_pop calls with T_FRAME*() macros.
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Dec 2007 17:47:44 +0200
parents f90a4e265d00
children 7ed926ed7aa4
line wrap: on
line diff
--- a/src/util/logview.c	Wed Dec 05 17:47:19 2007 +0200
+++ b/src/util/logview.c	Wed Dec 05 17:47:44 2007 +0200
@@ -276,7 +276,7 @@
 
 int main(int argc, const char *argv[])
 {
-	int fd;
+	int fd, ret;
 
 	lib_init();
 
@@ -290,12 +290,10 @@
 	}
 
 	dump_hdr(fd);
-	for (;;) {
-		t_push();
-		if (!dump_record(fd))
-			break;
-		t_pop();
-	}
-	t_pop();
+	do {
+		T_FRAME(
+			ret = dump_record(fd);
+		);
+	} while (ret > 0);
 	return 0;
 }