mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Connect: Remove some unused variables
This commit is contained in:
parent
45973ec610
commit
de9072ca19
3 changed files with 2 additions and 7 deletions
|
@ -766,7 +766,6 @@ void JDBConn::AddJars(PSTRG jpop, char sep)
|
|||
/***********************************************************************/
|
||||
bool JDBConn::Connect(PJPARM sop)
|
||||
{
|
||||
int irc = RC_FX;
|
||||
bool err = false;
|
||||
jint rc;
|
||||
jboolean jt = (trace(1));
|
||||
|
|
|
@ -167,8 +167,7 @@ PQRYRES __stdcall ColREST(PGLOBAL g, PTOS tp, char *tab, char *db, bool info)
|
|||
#endif // !MARIADB
|
||||
|
||||
// We used the file name relative to recorded datapath
|
||||
strcat(strcat(strcat(strcpy(filename, "."), slash), db), slash);
|
||||
strncat(filename, fn, _MAX_PATH - strlen(filename));
|
||||
snprintf(filename, sizeof filename, IF_WIN(".\\%s\\%s","./%s/%s"), db, fn);
|
||||
|
||||
// Retrieve the file from the web and copy it locally
|
||||
if (http && grf(g->Message, trace(515), http, uri, filename)) {
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
/***********************************************************************/
|
||||
#pragma once
|
||||
|
||||
#if defined(__WIN__)
|
||||
static PCSZ slash = "\\";
|
||||
#else // !__WIN__
|
||||
static PCSZ slash = "/";
|
||||
#ifndef __WIN__
|
||||
#define stricmp strcasecmp
|
||||
#endif // !__WIN__
|
||||
|
||||
|
|
Loading…
Reference in a new issue