Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Aug 17, 2014
1 parent 504160e commit d00c3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions other/bootstrap_daemon/tox-bootstrapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ void print_public_key(uint8_t *public_key)
char buffer[2 * crypto_box_PUBLICKEYBYTES + 1];
int index = 0;

int i;
size_t i;

for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) {
index += sprintf(buffer + index, "%02hhX", public_key[i]);
Expand Down Expand Up @@ -529,7 +529,7 @@ int main(int argc, char *argv[])
// Check if the PID file exists
FILE *pid_file;

if (pid_file = fopen(pid_file_path, "r")) {
if ((pid_file = fopen(pid_file_path, "r"))) {
syslog(LOG_ERR, "Another instance of the daemon is already running, PID file %s exists.\n", pid_file_path);
fclose(pid_file);
}
Expand Down

0 comments on commit d00c3c3

Please sign in to comment.