diff lib/misc.c @ 260:71d0098c3735

2003-8-17 Brian Masney <masneyb@gftp.org> * lib/protocols.c (parse_time) - when parsing timestamps that are not in the current locale, skip over the proper amount of tokens. This is so that the filename is returned properly. * lib/misc.c (gftp_info) - show the protocols that are installed.
author masneyb
date Mon, 18 Aug 2003 00:57:57 +0000
parents 094e83b55cb1
children 5f66f09e5194
line wrap: on
line diff
--- a/lib/misc.c	Thu Aug 14 20:57:21 2003 +0000
+++ b/lib/misc.c	Mon Aug 18 00:57:57 2003 +0000
@@ -352,10 +352,12 @@
 static void
 gftp_info (void)
 {
+  int i;
+
   printf ("%s\n", gftp_version);
 
 #ifdef _LARGEFILE_SOURCE
-  printf ("#define_LARGEFILE_SOURCE\n");
+  printf ("#define _LARGEFILE_SOURCE\n");
 #endif
 
 #ifdef _FILE_OFFSET_BITS
@@ -364,10 +366,6 @@
 
   printf ("sizeof (off_t) = %d\n", sizeof (off_t));
 
-#ifdef USE_SSL
-  printf ("#define USE_SSL\n");
-#endif
-
 #ifdef HAVE_GETADDRINFO
   printf ("#define HAVE_GETADDRINFO\n");
 #endif
@@ -404,6 +402,13 @@
 #ifdef USE_SSL
   printf ("OpenSSL version: 0x%lx\n", OPENSSL_VERSION_NUMBER);
 #endif
+
+  printf ("Enabled protocols: ");
+  for (i=0; gftp_protocols[i].name != NULL; i++)
+    {
+      printf ("%s ", gftp_protocols[i].name);
+    }
+  printf ("\n");
 }