mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-07 02:46:36 +00:00
Merge pull request #251 from ldruschk/250-http-mqtt-compiler-error
move argument checks for psk and identity to WITH_MQTT
This commit is contained in:
13
recorder.c
13
recorder.c
@@ -1417,6 +1417,12 @@ int main(int argc, char **argv)
|
||||
case 'p':
|
||||
ud->port = atoi(optarg);
|
||||
break;
|
||||
case 20:
|
||||
ud->psk = strdup(optarg);
|
||||
break;
|
||||
case 21:
|
||||
ud->identity = strdup(optarg);
|
||||
break;
|
||||
#endif /* WITH_MQTT */
|
||||
case 5:
|
||||
geohash_setprec(atoi(optarg));
|
||||
@@ -1443,13 +1449,6 @@ int main(int argc, char **argv)
|
||||
if (ud->browser_apikey) free(ud->browser_apikey);
|
||||
ud->browser_apikey = strdup(optarg);
|
||||
break;
|
||||
|
||||
case 20:
|
||||
ud->psk = strdup(optarg);
|
||||
break;
|
||||
case 21:
|
||||
ud->identity = strdup(optarg);
|
||||
break;
|
||||
#endif
|
||||
case 'D':
|
||||
ud->skipdemo = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user