diff options
Diffstat (limited to 'other')
-rw-r--r-- | other/apidsl/README.md | 2 | ||||
-rw-r--r-- | other/apidsl/tox.in.h | 5 | ||||
-rw-r--r-- | other/apidsl/toxav.in.h | 2 | ||||
-rw-r--r-- | other/bootstrap_daemon/tox-bootstrapd.c | 3 |
4 files changed, 10 insertions, 2 deletions
diff --git a/other/apidsl/README.md b/other/apidsl/README.md index c8241eb8..0b3e776d 100644 --- a/other/apidsl/README.md +++ b/other/apidsl/README.md | |||
@@ -4,7 +4,7 @@ with: https://github.com/iphydf/apidsl | |||
4 | You can also use the following command if you can't install it: | 4 | You can also use the following command if you can't install it: |
5 | 5 | ||
6 | ``` | 6 | ``` |
7 | cat tox.in.h | curl -X POST --data-binary @- https://criticism.herokuapp.com/apidsl > tox.h | 7 | curl -X POST --data-binary @- https://criticism.herokuapp.com/apidsl < tox.in.h > tox.h |
8 | ``` | 8 | ``` |
9 | 9 | ||
10 | Note that the output must be passed through astyle with the config in | 10 | Note that the output must be passed through astyle with the config in |
diff --git a/other/apidsl/tox.in.h b/other/apidsl/tox.in.h index 84a4a03e..dd47df23 100644 --- a/other/apidsl/tox.in.h +++ b/other/apidsl/tox.in.h | |||
@@ -411,6 +411,11 @@ static class options { | |||
411 | * The end port of the inclusive port range to attempt to use. | 411 | * The end port of the inclusive port range to attempt to use. |
412 | */ | 412 | */ |
413 | uint16_t end_port; | 413 | uint16_t end_port; |
414 | |||
415 | /** | ||
416 | * The port to use for the TCP server. If 0, the tcp server is disabled. | ||
417 | */ | ||
418 | uint16_t tcp_port; | ||
414 | } | 419 | } |
415 | 420 | ||
416 | 421 | ||
diff --git a/other/apidsl/toxav.in.h b/other/apidsl/toxav.in.h index 9de1e184..bcf554ac 100644 --- a/other/apidsl/toxav.in.h +++ b/other/apidsl/toxav.in.h | |||
@@ -622,4 +622,4 @@ namespace video { | |||
622 | } | 622 | } |
623 | %{ | 623 | %{ |
624 | #endif | 624 | #endif |
625 | %} \ No newline at end of file | 625 | %} |
diff --git a/other/bootstrap_daemon/tox-bootstrapd.c b/other/bootstrap_daemon/tox-bootstrapd.c index 1bcae732..8b5e6a4b 100644 --- a/other/bootstrap_daemon/tox-bootstrapd.c +++ b/other/bootstrap_daemon/tox-bootstrapd.c | |||
@@ -105,6 +105,9 @@ int manage_keys(DHT *dht, char *keys_file_path) | |||
105 | 105 | ||
106 | keys_file = fopen(keys_file_path, "w"); | 106 | keys_file = fopen(keys_file_path, "w"); |
107 | 107 | ||
108 | if (!keys_file) | ||
109 | return 0; | ||
110 | |||
108 | const size_t write_size = fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file); | 111 | const size_t write_size = fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file); |
109 | 112 | ||
110 | if (write_size != KEYS_SIZE) { | 113 | if (write_size != KEYS_SIZE) { |