~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

  • Committer: Monty Taylor
  • Date: 2010-08-21 00:40:40 UTC
  • mfrom: (1723.1.11 build)
  • Revision ID: mordred@inaugust.com-20100821004040-udj7wpfxtj0rgak1
Rollup of small patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <sys/stat.h>
31
31
#include <fcntl.h>
32
32
#include <cstdio>
 
33
#include <cerrno>
33
34
 
34
35
using namespace drizzled;
35
36
namespace po= boost::program_options;
193
194
 
194
195
    if (gearman_client_create(&gearman_client) == NULL)
195
196
    {
 
197
      char errmsg[STRERROR_MAX];
 
198
      strerror_r(errno, errmsg, sizeof(errmsg));
196
199
      errmsg_printf(ERRMSG_LVL_ERROR, _("fail gearman_client_create(): %s"),
197
 
                    strerror(errno));
 
200
                    errmsg);
198
201
      return;
199
202
    }
200
203