mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-20 04:18:25 +00:00
Remove obsolete (undocumented) "travis-ci" command line argument.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
8
args.c
8
args.c
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
static bool debug = false;
|
static bool debug = false;
|
||||||
bool daemonmode = true;
|
bool daemonmode = true;
|
||||||
bool travis = false;
|
|
||||||
int argc_dnsmasq = 0;
|
int argc_dnsmasq = 0;
|
||||||
const char** argv_dnsmasq = NULL;
|
const char** argv_dnsmasq = NULL;
|
||||||
|
|
||||||
@@ -90,13 +89,6 @@ void parse_args(int argc, char* argv[])
|
|||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use files in local places for Travis-CI tests
|
|
||||||
if(strcmp(argv[i], "travis-ci") == 0)
|
|
||||||
{
|
|
||||||
travis = true;
|
|
||||||
ok = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Implement dnsmasq's test function
|
// Implement dnsmasq's test function
|
||||||
if(strcmp(argv[i], "dnsmasq-test") == 0)
|
if(strcmp(argv[i], "dnsmasq-test") == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,10 +49,6 @@ int main (int argc, char **argv) {
|
|||||||
command = argv[i];
|
command = argv[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set socket file location (respect special location on the CI system Travis)
|
|
||||||
if(strcmp(argv[i], "travis") == 0)
|
|
||||||
strcpy(address.sun_path,"pihole-FTL.sock");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect to the socket provided by pihole-FTL
|
// Connect to the socket provided by pihole-FTL
|
||||||
|
|||||||
Reference in New Issue
Block a user