mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
getpid returns a pid_t. we all know that's an int. but solaris doesn't know.
svn:r1305
This commit is contained in:
parent
4d37311481
commit
df3f37b84f
@ -837,7 +837,7 @@ void write_pidfile(char *filename) {
|
||||
log_fn(LOG_WARN, "unable to open %s for writing: %s", filename,
|
||||
strerror(errno));
|
||||
} else {
|
||||
fprintf(pidfile, "%d", getpid());
|
||||
fprintf(pidfile, "%d", (int)getpid());
|
||||
fclose(pidfile);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user