~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/comp_err.c

Removing redundant use of casts in drizzled/ for memcmp(), memcpy(), memset(), and memmove().
Adding non-const version of String::ptr() to provide covariance on const:ness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
315
315
 
316
316
    /* continue with header of the errmsg.sys file */
317
317
    length= ftell(to) - HEADER_LENGTH - row_count * 2;
318
 
    memset((uchar*) head, 0, HEADER_LENGTH);
319
 
    memcpy((uchar *) head, (uchar *) file_head, 4);
 
318
    memset(head, 0, HEADER_LENGTH);
 
319
    memcpy(head, file_head, 4);
320
320
    head[4]= 1;
321
321
    int2store(head + 6, length);
322
322
    int2store(head + 8, row_count);