You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/04/20 01:19:30 UTC

[5/6] TS-1820 Cleanup the comments some, and eliminate a few unused parameters where it was obvious

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c88d6153/tools/jtest/jtest.cc
----------------------------------------------------------------------
diff --git a/tools/jtest/jtest.cc b/tools/jtest/jtest.cc
index 25ba5d4..19042fc 100644
--- a/tools/jtest/jtest.cc
+++ b/tools/jtest/jtest.cc
@@ -1992,7 +1992,7 @@ static int send_ftp_data_when_ready(int sock) {
   return 0;
 }
 
-static int send_ftp_data(int sock, char * start, char * end) {
+static int send_ftp_data(int sock, char * start /*, char * end */) {
   int data_fd = fd[sock].ftp_data_fd;
   if (sscanf(start,"%d",&fd[data_fd].doc_length) != 1)
     return -1;
@@ -2396,7 +2396,7 @@ static int read_ftp_request(int sock) {
         }
         n = (char*)memchr(buffer,'\n',fd[sock].req_pos);
         if (!n) return 0;
-        if (send_ftp_data(sock, buffer+5, n)<0) {
+        if (send_ftp_data(sock, buffer+5 /*, n */)<0) {
           errors++;
           *n = 0;
           if (verbose)
@@ -3987,7 +3987,7 @@ static FILE * get_defered_urls(FILE * fp) {
   return fp;
 }
 
-int main(int argc, char *argv[]) {
+int main(int argc __attribute__((unused)), char *argv[]) {
   /* for QA -- we want to be able to tail an output file
    * during execution "nohup jtest -P pxy -p prt &"
    */