Repository: trafficserver
Updated Branches:
  refs/heads/master db13618c0 -> 8b19aaf58


Remove poorly spelled SEPERATOR


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8b19aaf5
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8b19aaf5
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8b19aaf5

Branch: refs/heads/master
Commit: 8b19aaf58c78daba6660b2b3f7a62937f7bf8ea3
Parents: db13618
Author: James Peach <[email protected]>
Authored: Wed Oct 29 11:31:46 2014 -0700
Committer: James Peach <[email protected]>
Committed: Wed Oct 29 11:31:46 2014 -0700

----------------------------------------------------------------------
 lib/records/RecFile.cc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8b19aaf5/lib/records/RecFile.cc
----------------------------------------------------------------------
diff --git a/lib/records/RecFile.cc b/lib/records/RecFile.cc
index 42f557f..dbeb8f2 100644
--- a/lib/records/RecFile.cc
+++ b/lib/records/RecFile.cc
@@ -152,10 +152,8 @@ RecPipeCreate(const char *base_path, const char *name)
   sigaction(SIGPIPE, &act, &oact);
 
   // construct a path/filename for the pipe
-#define SEPERATOR "/"
   char path[PATH_NAME_MAX];
-  snprintf(path, sizeof(path), "%s%s%s", base_path, SEPERATOR, name);
-#undef SEPERATOR
+  snprintf(path, sizeof(path), "%s/%s", base_path, name);
   if (strlen(path) > (sizeof(servaddr.sun_path) - 1)) {
     RecLog(DL_Warning, "[RecPipeCreate] Path name too long; exiting\n");
     return REC_HANDLE_INVALID;
@@ -221,10 +219,8 @@ RecPipeConnect(const char *base_path, const char *name)
   int servaddr_len;
 
   // construct a path/filename for the pipe
-#define SEPERATOR "/"
   char path[PATH_NAME_MAX];
-  snprintf(path, sizeof(path), "%s%s%s", base_path, SEPERATOR, name);
-#undef SEPERATOR
+  snprintf(path, sizeof(path), "%s/%s", base_path, name);
   if (strlen(path) > (sizeof(servaddr.sun_path) - 1)) {
     RecLog(DL_Warning, "[RecPipeConnect] Path name too long\n");
     return REC_HANDLE_INVALID;

Reply via email to