Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#2757) Patch: New metaserver sample civclient/civserver
Home

[Freeciv-Dev] (PR#2757) Patch: New metaserver sample civclient/civserver

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: _vasc@xxxxxxxxxxx.pt_
Subject: [Freeciv-Dev] (PR#2757) Patch: New metaserver sample civclient/civserver implementation
From: "Vasco Alexandre da Silva Costa via RT" <vasc@xxxxxxxxxxxxxx>
Date: Tue, 5 Oct 2004 06:44:26 -0700
Reply-to: RT_CorrespondAddressNotSet@xxxxxxxxxxxxxx

<URL: http://RT::WebBaseURL.not.configured:80/Ticket/Display.html?id=2757 >

This patch removes some dead code in my_url_encode.

Index: utility/netintf.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/netintf.c,v
retrieving revision 1.22
diff -u -r1.22 netintf.c
--- utility/netintf.c   4 Oct 2004 04:37:34 -0000       1.22
+++ utility/netintf.c   5 Oct 2004 13:43:40 -0000
@@ -299,7 +299,6 @@
 const char *my_url_encode(const char *txt)
 {
   static char buf[2048];
-  int  pos;
   unsigned ch;
   char *ptr;
 
@@ -314,14 +313,11 @@
 
     if (is_url_safe(ch)) {
       *ptr++ = *txt;
-      pos++;
     } else if (ch == ' ') {
       *ptr++ = '+';
-      pos++;
     } else {
       sprintf(ptr, "%%%2.2X", ch);
       ptr += 3;
-      pos += 3;
     }
   }
   *ptr++ = '\0';

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