~ubuntu-branches/debian/sid/gearmand/sid

« back to all changes in this revision

Viewing changes to gearmand/gearmand.cc

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2012-05-01 20:43:47 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120501204347-qaifvvjkktvc9upu
Tags: 0.32-1
* Imported Upstream version 0.32
* Remove spelling patch included upstream
* Remove documentation patch, we do not rebuild documentation
* Remove memcached patch, fixed upstream
* Use dh_autoreconf
* Use copyright format 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
    return EXIT_FAILURE;
259
259
  }
260
260
 
261
 
  if (not queue_type.empty())
 
261
  if (queue_type.empty() == false)
262
262
  {
263
263
    gearmand_error_t rc;
264
264
    if ((rc= gearmand::queue::initialize(_gearmand, queue_type.c_str())) != GEARMAN_SUCCESS)
265
265
    {
266
 
      error::message("Error while initializing the queue", protocol.c_str());
 
266
      error::message("Error while initializing the queue", queue_type.c_str());
267
267
      gearmand_free(_gearmand);
268
268
 
269
269
      return EXIT_FAILURE;
280
280
      return EXIT_FAILURE;
281
281
    }
282
282
  }
283
 
  else if (protocol.empty() == 0)
 
283
  else if (protocol.empty() == false)
284
284
  {
285
285
    error::message("Unknown protocol module", protocol.c_str());
286
286
    gearmand_free(_gearmand);