~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to iocore/cluster/test_I_Cluster.cc

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
  // change the diags config values //
90
90
  ////////////////////////////////////
91
91
  // XXX: HP-UX ???
92
 
#if !defined (_WIN32) && !defined(__GNUC__) && !defined(hpux)
 
92
#if !defined(__GNUC__) && !defined(hpux)
93
93
  diags->config = c;
94
94
#else
95
95
  memcpy(((void *) &diags->config), ((void *) &c), sizeof(DiagsConfigState));
104
104
{
105
105
  FILE *diags_log_fp;
106
106
  char diags_logpath[500];
107
 
  strcpy(diags_logpath, DIAGS_LOG_FILE);
 
107
  ink_strlcpy(diags_logpath, DIAGS_LOG_FILE, sizeof(diags_logpath));
108
108
 
109
109
  diags_log_fp = fopen(diags_logpath, "w");
110
110
  if (diags_log_fp) {