summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2010-01-19 05:14:06 +0530
committerMukund Sivaraman <muks@banu.com>2010-01-19 05:14:06 +0530
commit7ac13d7924e12785b5f7a6b876329dee79557e6a (patch)
tree4b24bbc17dea6628c4492486cca917c67f1ee279 /src/main.c
parentedea7e37d08e3045f4e7932ed74e09b5b8dc5c5c (diff)
downloadtinyproxy-7ac13d7924e12785b5f7a6b876329dee79557e6a.tar.gz
tinyproxy-7ac13d7924e12785b5f7a6b876329dee79557e6a.zip
Change to for loop
Diffstat (limited to '')
-rw-r--r--src/main.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 2dc5e50..1443316 100644
--- a/src/main.c
+++ b/src/main.c
@@ -122,20 +122,15 @@ display_license (void)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n\
\n");
- authors = authors_get_authors ();
-
printf ("\nAUTHORS:\n");
- while (*authors) {
+ for (authors = authors_get_authors (); *authors; authors++) {
printf (" %s\n", *authors);
- authors++;
}
- documenters = authors_get_documenters ();
-
printf ("\nDOCUMENTERS:\n");
- while (*documenters) {
+ for (documenters = authors_get_documenters ();
+ *documenters; documenters++) {
printf (" %s\n", *documenters);
- documenters++;
}
printf ("\n");