]> granicus.if.org Git - php/commitdiff
Fix nameclash with NSAPI API
authorZeev Suraski <zeev@php.net>
Mon, 28 Jul 2003 07:28:55 +0000 (07:28 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 28 Jul 2003 07:28:55 +0000 (07:28 +0000)
ext/mysql/libmysql/libmysql.c
ext/mysql/libmysql/mysql_com.h
ext/mysql/libmysql/net.c

index 433de0380eec4b6122ab56750b0cdf6401ad7eaf..94d6352252a457038bad2b3ea5091ea665b20695 100644 (file)
@@ -1510,7 +1510,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
   /* without encryption? */
   if (client_flag & CLIENT_SSL)
   {
-    if (my_net_write(net,buff,(uint) (2)) || net_flush(net))
+    if (my_net_write(net,buff,(uint) (2)) || my_net_flush(net))
       goto error;
     /* Do the SSL layering. */
     DBUG_PRINT("info", ("IO layer change in progress..."));
@@ -1543,7 +1543,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
     mysql->db=my_strdup(db,MYF(MY_WME));
     db=0;
   }
-  if (my_net_write(net,buff,(uint) (end-buff)) || net_flush(net) ||
+  if (my_net_write(net,buff,(uint) (end-buff)) || my_net_flush(net) ||
       net_safe_read(mysql) == packet_error)
     goto error;
   if (client_flag & CLIENT_COMPRESS)           /* We will use compression */
@@ -1808,7 +1808,7 @@ send_file_to_server(MYSQL *mysql, const char *filename)
     mysql->net.last_errno=EE_FILENOTFOUND;
     sprintf(buf,EE(mysql->net.last_errno),tmp_name,errno);
     strmake(mysql->net.last_error,buf,sizeof(mysql->net.last_error)-1);
-    my_net_write(&mysql->net,"",0); net_flush(&mysql->net);
+    my_net_write(&mysql->net,"",0); my_net_flush(&mysql->net);
     my_free(tmp_name,MYF(0));
     DBUG_RETURN(-1);
   }
@@ -1827,7 +1827,7 @@ send_file_to_server(MYSQL *mysql, const char *filename)
   }
   (void) my_close(fd,MYF(0));
   /* Send empty packet to mark end of file */
-  if (my_net_write(&mysql->net,"",0) || net_flush(&mysql->net))
+  if (my_net_write(&mysql->net,"",0) || my_net_flush(&mysql->net))
   {
     mysql->net.last_errno=CR_SERVER_LOST;
     sprintf(mysql->net.last_error,ER(mysql->net.last_errno),socket_errno);
index 75a07202c79ea1377ce782881b4195871f331da8..16bf1aa7ed3ad4a1123c8631b7d2831751b67133 100644 (file)
@@ -146,7 +146,7 @@ extern unsigned long net_buffer_length;
 int    my_net_init(NET *net, Vio* vio);
 void   net_end(NET *net);
 void   net_clear(NET *net);
-int    net_flush(NET *net);
+int    my_net_flush(NET *net);
 int    my_net_write(NET *net,const char *packet,unsigned long len);
 int    net_write_command(NET *net,unsigned char command,const char *packet,
                          unsigned long len);
index 161fba4acefd0b1c3973b887e60de955fd3c5ba4..3fd2f9d19082b984ac646e5a40af2e7cb5c11dc1 100644 (file)
@@ -183,10 +183,10 @@ void net_clear(NET *net)
 
        /* Flush write_buffer if not empty. */
 
-int net_flush(NET *net)
+int my_net_flush(NET *net)
 {
   int error=0;
-  DBUG_ENTER("net_flush");
+  DBUG_ENTER("my_net_flush");
   if (net->buff != net->write_pos)
   {
     error=net_real_write(net,(char*) net->buff,
@@ -231,7 +231,7 @@ net_write_command(NET *net,uchar command,const char *packet,ulong len)
   buff[4]=command;
   if (net_write_buff(net,(char*) buff,5))
     return 1;
-  return test(net_write_buff(net,packet,len) || net_flush(net));
+  return test(net_write_buff(net,packet,len) || my_net_flush(net));
 }