~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/client.c

  • Committer: Monty Taylor
  • Date: 2008-07-11 15:49:04 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 134.
  • Revision ID: monty@inaugust.com-20080711154904-nrtkef3bo1jvzrds
A crapton more warning cleanups (I turned on more warnings) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1283
1283
C_MODE_END
1284
1284
 
1285
1285
 
1286
 
MYSQL * STDCALL 
 
1286
MYSQL * STDCALL
1287
1287
CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
1288
 
                       const char *passwd, const char *db,
1289
 
                       uint port, const char *unix_socket,ulong client_flag)
 
1288
                       const char *passwd, const char *db,
 
1289
                       uint port, const char *unix_socket,ulong client_flag)
1290
1290
{
1291
 
  char          buff[NAME_LEN+USERNAME_LENGTH+100];
1292
 
  char          *end,*host_info;
1293
 
  ulong         pkt_length;
1294
 
  NET           *net= &mysql->net;
1295
 
  struct        sockaddr_un UNIXaddr;
 
1291
  char          buff[NAME_LEN+USERNAME_LENGTH+100];
 
1292
  char          *end,*host_info=NULL;
 
1293
  ulong         pkt_length;
 
1294
  NET           *net= &mysql->net;
 
1295
  struct        sockaddr_un UNIXaddr;
1296
1296
  init_sigpipe_variables
1297
1297
  DBUG_ENTER("mysql_real_connect");
1298
1298
 
1299
1299
  DBUG_PRINT("enter",("host: %s  db: %s  user: %s",
1300
 
                      host ? host : "(Null)",
1301
 
                      db ? db : "(Null)",
1302
 
                      user ? user : "(Null)"));
 
1300
                      host ? host : "(Null)",
 
1301
                      db ? db : "(Null)",
 
1302
                      user ? user : "(Null)"));
1303
1303
 
1304
1304
  /* Don't give sigpipe errors if the client doesn't want them */
1305
1305
  set_sigpipe(mysql);