Skip to content

Commit 5a35205

Browse files
Add ftp fixes
1 parent 0917cbb commit 5a35205

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

source/shared_lib/include/feathery_ftp/ftpTypes.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ typedef uint16_t port_t;
6969
extern "C" {
7070
#endif
7171

72-
int VERBOSE_MODE_ENABLED;
72+
extern int VERBOSE_MODE_ENABLED;
7373

7474
typedef ip_t (*ftpFindExternalFTPServerIpType)(ip_t clientIp);
7575
typedef void (*ftpAddUPNPPortForwardType)(int internalPort, int externalPort);
7676
typedef void (*ftpRemoveUPNPPortForwardType)(int internalPort, int externalPort);
7777
typedef int (*ftpIsValidClientType)(ip_t clientIp);
7878
typedef int (*ftpIsClientAllowedToGetFileType)(ip_t clientIp, const char *username, const char *filename);
7979

80-
ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
81-
ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
82-
ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
83-
ftpIsValidClientType ftpIsValidClient;
84-
ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
80+
extern ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
81+
extern ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
82+
extern ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
83+
extern ftpIsValidClientType ftpIsValidClient;
84+
extern ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
8585

8686
#ifdef __cplusplus
8787
}

source/shared_lib/sources/feathery_ftp/ftpRuntime.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
#include "ftp.h"
3131
#include "ftpMessages.h"
3232

33+
int VERBOSE_MODE_ENABLED;
34+
35+
ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
36+
ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
37+
ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
38+
ftpIsValidClientType ftpIsValidClient;
39+
ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
3340

3441
/**
3542
* @brief server-sockets that listens for incoming connections

0 commit comments

Comments
 (0)