Skip to content

Commit

Permalink
Remove unused -m option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Aug 5, 2024
1 parent 65b104a commit 7c98364
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions src/minisatip.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ int rtsp, http, si, si1, ssdp1;
#define HELP_OPT 'h'
#define PLAYLIST_OPT 'p'
#define ADAPTERS_OPT 'a'
#define MAC_OPT 'm'
#define FOREGROUND_OPT 'f'
#define DVRBUFFER_OPT 'b'
#define APPBUFFER_OPT 'B'
Expand Down Expand Up @@ -174,7 +173,6 @@ static const struct option long_options[] = {
{"lnb", required_argument, NULL, LNB_OPT},
{"log", required_argument, NULL, LOG_OPT},
{"logfile", required_argument, NULL, LOGFILE_OPT},
{"mac", required_argument, NULL, MAC_OPT},
{"multiplier", required_argument, NULL, SIGNALMULTIPLIER_OPT},
{"no-all-pids", no_argument, NULL, NO_PIDS_ALL_OPT},
{"priority", required_argument, NULL, PRIORITY_OPT},
Expand Down Expand Up @@ -308,7 +306,7 @@ void usage() {

printf(
"\n\t./%s [-[fgtzE]] [-a x:y:z] [-b X:Y] [-B X] [-H X:Y] [-d A:C-U ] [-D device_id] [-e X-Y,Z] [-i prio] \n\
\t[-[uj] A1:S1-F1[-PIN]] [-m mac] [-P port] [-l module1[,module2]] [-v module1[,module2]] \n\t"
\t[-[uj] A1:S1-F1[-PIN]] [-P port] [-l module1[,module2]] [-v module1[,module2]] \n\t"
#ifndef DISABLE_DVBAPI
"[-o [~]oscam_host:dvbapi_port[,offset] "
#endif
Expand Down Expand Up @@ -411,9 +409,6 @@ Help\n\
\n\
For backward-compatibility reasons, linear LNB parameters may also be specified as *:5150-5150-5150 instead of *:5150-0-0\n\
\n\
* -m --mac xx: simulate xx as local mac address, generates UUID based on mac\n\
* eg: -m 001122334455 \n\
\n\
* -M --multiplier: multiplies the strength and snr of the DVB adapter with the specified values\n\
* If the snr or the strength multipliers are set to 0, minisatip will override the value received from the adapter and will report always full signal 100%% \n\
* eg: -M 4-6:1.2-1.3 - multiplies the strength with 1.2 and the snr with 1.3 for adapter 4, 5 and 6\n\
Expand Down Expand Up @@ -724,10 +719,6 @@ void set_options(int argc, char *argv[]) {
opts.daemon = 0;
break;
}
case MAC_OPT: {
safe_strncpy(opts.mac, optarg);
break;
}
case RRTP_OPT: {
opts.rrtp = optarg;
break;
Expand Down
1 change: 0 additions & 1 deletion src/opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ typedef struct struct_opts {
int run_user;
int run_pid;
char *disc_host; // discover host
char mac[13];
char uuid[UUID_STR_LEN];
unsigned int log, debug, slog, start_rtp, http_port;
int timeout_sec;
Expand Down

0 comments on commit 7c98364

Please sign in to comment.