gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7544 - in GNUnet: . src/applications/chat/tools src/server


From: gnunet
Subject: [GNUnet-SVN] r7544 - in GNUnet: . src/applications/chat/tools src/server
Date: Tue, 12 Aug 2008 13:37:49 -0600 (MDT)

Author: grothoff
Date: 2008-08-12 13:37:49 -0600 (Tue, 12 Aug 2008)
New Revision: 7544

Modified:
   GNUnet/configure.ac
   GNUnet/src/applications/chat/tools/gnunet-chat.c
   GNUnet/src/server/connection.c
Log:
fixing #1405

Modified: GNUnet/configure.ac
===================================================================
--- GNUnet/configure.ac 2008-08-12 01:43:59 UTC (rev 7543)
+++ GNUnet/configure.ac 2008-08-12 19:37:49 UTC (rev 7544)
@@ -28,6 +28,7 @@
 AH_TOP([#define _GNU_SOURCE  1])
 
 # Checks for programs.
+AC_CANONICAL_HOST
 AC_PROG_AWK
 AC_PROG_CC
 AC_PROG_CPP
@@ -40,7 +41,6 @@
 AC_LIBTOOL_WIN32_DLL
 AC_LIBLTDL_INSTALLABLE
 AC_PROG_LIBTOOL
-AC_CANONICAL_HOST
 AC_LIB_LTDL
 m4_ifdef([_AC_SEEN_TAG(libltdl)], [], [AC_CONFIG_SUBDIRS(libltdl)])
 AC_SUBST(LTDLINCL)

Modified: GNUnet/src/applications/chat/tools/gnunet-chat.c
===================================================================
--- GNUnet/src/applications/chat/tools/gnunet-chat.c    2008-08-12 01:43:59 UTC 
(rev 7543)
+++ GNUnet/src/applications/chat/tools/gnunet-chat.c    2008-08-12 19:37:49 UTC 
(rev 7544)
@@ -426,13 +426,15 @@
 {
   int i;
   i = 0;
-  while (commands[i].Action != &do_help)
+  while ((args != NULL) &&
+        (0 != strlen(args)) &&
+        (commands[i].Action != &do_help))
     {
-      if (0 == strcasecmp (xtra, commands[i].command))
+      if (0 == strncasecmp (&args[1], &commands[i].command[1], strlen(args)-1))
         {
           fprintf (stdout, "%s\n", gettext (commands[i].helptext));
           return GNUNET_OK;
-        }
+       }        
       i++;
     }
   i = 0;

Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c      2008-08-12 01:43:59 UTC (rev 7543)
+++ GNUnet/src/server/connection.c      2008-08-12 19:37:49 UTC (rev 7544)
@@ -4461,9 +4461,6 @@
  * @param amount how many bytes should we expect to receive?
  *        (negative amounts can be used to undo a (recent)
  *        reservation request
- * @param timeframe in what time interval should the other
- *        peer be able to transmit the amount?  Use zero
- *        when undoing a reservation
  * @return amount that could actually be reserved
  */
 int





reply via email to

[Prev in Thread] Current Thread [Next in Thread]