summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/tox-bootstrapd.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_daemon/tox-bootstrapd.c')
-rw-r--r--other/bootstrap_daemon/tox-bootstrapd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/other/bootstrap_daemon/tox-bootstrapd.c b/other/bootstrap_daemon/tox-bootstrapd.c
index 8cec44f3..a5d1c525 100644
--- a/other/bootstrap_daemon/tox-bootstrapd.c
+++ b/other/bootstrap_daemon/tox-bootstrapd.c
@@ -480,7 +480,7 @@ void print_public_key(uint8_t *public_key)
480 char buffer[2 * crypto_box_PUBLICKEYBYTES + 1]; 480 char buffer[2 * crypto_box_PUBLICKEYBYTES + 1];
481 int index = 0; 481 int index = 0;
482 482
483 int i; 483 size_t i;
484 484
485 for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) { 485 for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) {
486 index += sprintf(buffer + index, "%02hhX", public_key[i]); 486 index += sprintf(buffer + index, "%02hhX", public_key[i]);
@@ -529,7 +529,7 @@ int main(int argc, char *argv[])
529 // Check if the PID file exists 529 // Check if the PID file exists
530 FILE *pid_file; 530 FILE *pid_file;
531 531
532 if (pid_file = fopen(pid_file_path, "r")) { 532 if ((pid_file = fopen(pid_file_path, "r"))) {
533 syslog(LOG_ERR, "Another instance of the daemon is already running, PID file %s exists.\n", pid_file_path); 533 syslog(LOG_ERR, "Another instance of the daemon is already running, PID file %s exists.\n", pid_file_path);
534 fclose(pid_file); 534 fclose(pid_file);
535 } 535 }