Add static

This commit is contained in:
Lakindu Akash 2020-10-31 12:34:59 +05:30
parent fb5631c0ba
commit a00aec2a6f
No known key found for this signature in database
GPG Key ID: 87D9889F7A634A38

View File

@ -48,19 +48,19 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define STOP "--stop"
char cmd_start[BUFSIZE];
char cmd_mkconfig[BUFSIZE];
char cmd_config[BUFSIZE];
char cmd_kill[BUFSIZE];
char cmd_write_mac[BUFSIZE];
static char cmd_start[BUFSIZE];
static char cmd_mkconfig[BUFSIZE];
static char cmd_config[BUFSIZE];
static char cmd_kill[BUFSIZE];
static char cmd_write_mac[BUFSIZE];
char h_running_info[BUFSIZE];
char interface_list[BUFSIZE];
char wifi_interface_list[BUFSIZE];
char _accepted_macs[BUFSIZE];
static char h_running_info[BUFSIZE];
static char interface_list[BUFSIZE];
static char wifi_interface_list[BUFSIZE];
static char accepted_macs[BUFSIZE];
const char* g_ssid=NULL;
const char* g_pass=NULL;
static const char* g_ssid=NULL;
static const char* g_pass=NULL;
//config_t cfg;
@ -177,10 +177,10 @@ char * read_mac_filter_file(char * filename){
}
while((ch = (char)fgetc(fp)) != EOF)
strcat(_accepted_macs, &ch);
strcat(accepted_macs, &ch);
fclose(fp);
return _accepted_macs;
return accepted_macs;
}
//int write_config(char* file){