~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/log_event.cc

  • Committer: Patrick Galbraith
  • Date: 2008-07-16 18:48:24 UTC
  • mto: (77.3.28 glibclient)
  • mto: This revision was merged to the branch mainline in revision 176.
  • Revision ID: patg@ishvara-20080716184824-nyd9po8rwk00l2qu
Dar, I forgot to commit this earlier.

* Removed my_sprintf from the files below
* Fixed some small issues that cause compile to fail (pedantic picky-ousity)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4497
4497
      double real_val;
4498
4498
      char real_buf[FMT_G_BUFSIZE(14)];
4499
4499
      float8get(real_val, val);
4500
 
      my_sprintf(real_buf, (real_buf, "%.14g", real_val));
 
4500
      sprintf(real_buf, "%.14g", real_val);
4501
4501
      my_b_printf(&cache, ":=%s%s\n", real_buf, print_event_info->delimiter);
4502
4502
      break;
4503
4503
    case INT_RESULT:
5229
5229
{
5230
5230
  char buf[256];
5231
5231
  uint length;
5232
 
  length= (uint) my_sprintf(buf,
5233
 
                            (buf, ";file_id=%u;block_len=%u", file_id,
5234
 
                             block_len));
 
5232
  length= (uint) sprintf(buf, ";file_id=%u;block_len=%u", file_id,
 
5233
                             block_len);
5235
5234
  protocol->store(buf, length, &my_charset_bin);
5236
5235
}
5237
5236
 
5370
5369
{
5371
5370
  char buf[64];
5372
5371
  uint length;
5373
 
  length= (uint) my_sprintf(buf, (buf, ";file_id=%u", (uint) file_id));
 
5372
  length= (uint) sprintf(buf, ";file_id=%u", (uint) file_id);
5374
5373
  protocol->store(buf, (int32) length, &my_charset_bin);
5375
5374
}
5376
5375
#endif
5468
5467
{
5469
5468
  char buf[64];
5470
5469
  uint length;
5471
 
  length= (uint) my_sprintf(buf, (buf, ";file_id=%u", (uint) file_id));
 
5470
  length= (uint) sprintf(buf, ";file_id=%u", (uint) file_id);
5472
5471
  protocol->store(buf, (int32) length, &my_charset_bin);
5473
5472
}
5474
5473