summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2010-01-18 19:05:31 +0530
committerMukund Sivaraman <muks@banu.com>2010-01-18 19:05:31 +0530
commitedea7e37d08e3045f4e7932ed74e09b5b8dc5c5c (patch)
tree99bb68e4527f015b8834dce40e604bba4c9e8049 /src/main.c
parentf3fe3d8e79a9962aa7cd28d0e80f4991c4ab7cad (diff)
downloadtinyproxy-edea7e37d08e3045f4e7932ed74e09b5b8dc5c5c.tar.gz
tinyproxy-edea7e37d08e3045f4e7932ed74e09b5b8dc5c5c.zip
Show authors and documenters when license is requested
Diffstat (limited to '')
-rw-r--r--src/main.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e141439..2dc5e50 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,6 +32,7 @@
#include "main.h"
#include "anonymous.h"
+#include "authors.h"
#include "buffer.h"
#include "conf.h"
#include "daemon.h"
@@ -92,9 +93,13 @@ display_version (void)
static void
display_license (void)
{
+ const char * const *authors;
+ const char * const *documenters;
+
display_version ();
printf ("\
+\n\
Copyright 1998 Steven Young (sdyoung@well.com)\n\
Copyright 1998-2002 Robert James Kaes (rjkaes@users.sourceforge.net)\n\
Copyright 1999 George Talusan (gstalusan@uwaterloo.ca)\n\
@@ -114,7 +119,26 @@ display_license (void)
\n\
You should have received a copy of the GNU General Public License\n\
along with this program; if not, write to the Free Software\n\
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n");
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n\
+\n");
+
+ authors = authors_get_authors ();
+
+ printf ("\nAUTHORS:\n");
+ while (*authors) {
+ printf (" %s\n", *authors);
+ authors++;
+ }
+
+ documenters = authors_get_documenters ();
+
+ printf ("\nDOCUMENTERS:\n");
+ while (*documenters) {
+ printf (" %s\n", *documenters);
+ documenters++;
+ }
+
+ printf ("\n");
}
/*