Группа :: Игры/Стратегия
Пакет: megaglest
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: megaglest-3.13.0-alt-fno-common.patch
Скачать
Скачать
diff --git a/source/shared_lib/include/feathery_ftp/ftpTypes.h b/source/shared_lib/include/feathery_ftp/ftpTypes.h
index 89310228..ca731066 100644
--- a/source/shared_lib/include/feathery_ftp/ftpTypes.h
+++ b/source/shared_lib/include/feathery_ftp/ftpTypes.h
@@ -69,7 +69,7 @@ typedef uint16_t port_t;
extern "C" {
#endif
-int VERBOSE_MODE_ENABLED;
+extern int VERBOSE_MODE_ENABLED;
typedef ip_t (*ftpFindExternalFTPServerIpType)(ip_t clientIp);
typedef void (*ftpAddUPNPPortForwardType)(int internalPort, int externalPort);
@@ -77,11 +77,11 @@ typedef void (*ftpRemoveUPNPPortForwardType)(int internalPort, int externalPort)
typedef int (*ftpIsValidClientType)(ip_t clientIp);
typedef int (*ftpIsClientAllowedToGetFileType)(ip_t clientIp, const char *username, const char *filename);
-ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
-ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
-ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
-ftpIsValidClientType ftpIsValidClient;
-ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
+extern ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
+extern ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
+extern ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
+extern ftpIsValidClientType ftpIsValidClient;
+extern ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
#ifdef __cplusplus
}
diff --git a/source/shared_lib/sources/feathery_ftp/ftpCmds.c b/source/shared_lib/sources/feathery_ftp/ftpCmds.c
index 6e49aff3..f7770ca8 100644
--- a/source/shared_lib/sources/feathery_ftp/ftpCmds.c
+++ b/source/shared_lib/sources/feathery_ftp/ftpCmds.c
@@ -54,6 +54,13 @@ DECLARATIVE SPECIFICATIONS
#include "ftpIfc.h"
#include "ftpMessages.h"
+int VERBOSE_MODE_ENABLED;
+
+ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
+ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
+ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
+ftpIsValidClientType ftpIsValidClient;
+ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
LOCAL uint8_t scratchBuf[LEN_SCRATCHBUF];