~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/client.c

  • Committer: Brian Aker
  • Date: 2010-12-19 06:20:54 UTC
  • mfrom: (2005.1.1 bug673105)
  • Revision ID: brian@tangent.org-20101219062054-1kt0l3dxs4z2z8md
Merge Dave.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
 
195
195
  if (client.client_con_count > 0)
196
196
  {
197
 
    client.client_con_list= (client_con_st *)calloc(client.client_con_count,
198
 
                                                    sizeof(client_con_st));
 
197
    client.client_con_list= calloc(client.client_con_count,
 
198
                                   sizeof(client_con_st));
199
199
    if (client.client_con_list == NULL)
200
200
    {
201
201
      printf("calloc:%d\n", errno);
222
222
    con= drizzle_con_add_tcp(&(client.drizzle),
223
223
                              &(client.client_con_list[x].con),
224
224
                              host, port, user, password, db,
225
 
                              client.mysql_protocol
226
 
                              ? DRIZZLE_CON_MYSQL
227
 
                              : DRIZZLE_CON_NONE);
 
225
                              client.mysql_protocol ? DRIZZLE_CON_MYSQL : 0);
228
226
    if (con == NULL)
229
227
      CLIENT_ERROR("drizzle_con_add_tcp", 0, &client);
230
228
    drizzle_con_set_context(&(client.client_con_list[x].con),