~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/readline.cc

  • Committer: Brian Aker
  • Date: 2009-02-20 22:48:37 UTC
  • Revision ID: brian@tangent.org-20090220224837-fw5wrf46n4ru3e6a
First pass of stripping uint

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
*/
112
112
static bool init_line_buffer_from_string(LINE_BUFFER *buffer,char * str)
113
113
{
114
 
  uint old_length=(uint)(buffer->end - buffer->buffer);
115
 
  uint length= (uint) strlen(str);
 
114
  uint32_t old_length=(uint)(buffer->end - buffer->buffer);
 
115
  uint32_t length= (uint) strlen(str);
116
116
  char * tmpptr= (char*)realloc(buffer->buffer, old_length+length+2);
117
117
  if (tmpptr == NULL)
118
118
    return 1;
140
140
static size_t fill_buffer(LINE_BUFFER *buffer)
141
141
{
142
142
  size_t read_count;
143
 
  uint bufbytes= (uint) (buffer->end - buffer->start_of_line);
 
143
  uint32_t bufbytes= (uint) (buffer->end - buffer->start_of_line);
144
144
 
145
145
  if (buffer->eof)
146
146
    return 0;                                   /* Everything read */
149
149
 
150
150
  for (;;)
151
151
  {
152
 
    uint start_offset=(uint) (buffer->start_of_line - buffer->buffer);
 
152
    uint32_t start_offset=(uint) (buffer->start_of_line - buffer->buffer);
153
153
    read_count=(buffer->bufread - bufbytes)/IO_SIZE;
154
154
    if ((read_count*=IO_SIZE))
155
155
      break;