trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject svn commit: r1171362 - /trafficserver/traffic/trunk/mgmt/api/remote/APITestCliRemote.cc
Date Fri, 16 Sep 2011 02:26:00 GMT
Author: igalic
Date: Fri Sep 16 02:26:00 2011
New Revision: 1171362

URL: http://svn.apache.org/viewvc?rev=1171362&view=rev
Log:
TS-953: C needs declarations

Modified:
    trafficserver/traffic/trunk/mgmt/api/remote/APITestCliRemote.cc

Modified: trafficserver/traffic/trunk/mgmt/api/remote/APITestCliRemote.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/mgmt/api/remote/APITestCliRemote.cc?rev=1171362&r1=1171361&r2=1171362&view=diff
==============================================================================
--- trafficserver/traffic/trunk/mgmt/api/remote/APITestCliRemote.cc (original)
+++ trafficserver/traffic/trunk/mgmt/api/remote/APITestCliRemote.cc Fri Sep 16 02:26:00 2011
@@ -2090,7 +2090,7 @@ add_snapshot(char *args)
   char *snap_name = strtok(args, ":");
   snap_name = strtok(NULL, ":");
   fprintf(stderr, "add snapshot: %s\n", snap_name);
-  name = TSstrdup(snap_name);
+  char *name = TSstrdup(snap_name);
 
   TSError err = TSSnapshotTake(name);
   print_err("TSSnapshotTake", err);
@@ -2104,7 +2104,7 @@ remove_snapshot(char *args)
   char *snap_name = strtok(args, ":");
   snap_name = strtok(NULL, ":");
   fprintf(stderr, "remove snapshot: %s\n", snap_name);
-  name = TSstrdup(snap_name);
+  char *name = TSstrdup(snap_name);
 
   TSError err = TSSnapshotRemove(name);
   print_err("TSSnapshotRemove", err);
@@ -2118,7 +2118,7 @@ restore_snapshot(char *args)
   char *snap_name = strtok(args, ":");
   snap_name = strtok(NULL, ":");
   fprintf(stderr, "resotre snapshot: %s\n", snap_name);
-  name = TSstrdup(snap_name);
+  char *name = TSstrdup(snap_name);
 
   TSError err = TSSnapshotRestore(name);
   print_err("TSSnapshotRestore", err);



Mime
View raw message