mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed some warnings
This commit is contained in:
parent
504160ee57
commit
d00c3c32d2
|
@ -480,7 +480,7 @@ void print_public_key(uint8_t *public_key)
|
||||||
char buffer[2 * crypto_box_PUBLICKEYBYTES + 1];
|
char buffer[2 * crypto_box_PUBLICKEYBYTES + 1];
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) {
|
for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) {
|
||||||
index += sprintf(buffer + index, "%02hhX", public_key[i]);
|
index += sprintf(buffer + index, "%02hhX", public_key[i]);
|
||||||
|
@ -529,7 +529,7 @@ int main(int argc, char *argv[])
|
||||||
// Check if the PID file exists
|
// Check if the PID file exists
|
||||||
FILE *pid_file;
|
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);
|
syslog(LOG_ERR, "Another instance of the daemon is already running, PID file %s exists.\n", pid_file_path);
|
||||||
fclose(pid_file);
|
fclose(pid_file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user