aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_core.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-17 18:15:59 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-17 18:15:59 +0100
commit2d0b60a90f4ac8907de22efa11bdef96b6783a94 (patch)
tree2d3259d4d84ba02af67cd2cb191b2c623b6050f8 /tools/xenstore/xenstored_core.c
parentcf1aa17df0aa162fa0004bd99a6b2d36b1fb27cf (diff)
downloadxen-2d0b60a90f4ac8907de22efa11bdef96b6783a94.tar.gz
xen-2d0b60a90f4ac8907de22efa11bdef96b6783a94.tar.bz2
xen-2d0b60a90f4ac8907de22efa11bdef96b6783a94.zip
[SOLARIS] A couple of simple compile fixes for tools/ on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/xenstore/xenstored_core.c')
-rw-r--r--tools/xenstore/xenstored_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c
index 2511e4a5fc..d71a773237 100644
--- a/tools/xenstore/xenstored_core.c
+++ b/tools/xenstore/xenstored_core.c
@@ -1688,7 +1688,7 @@ static void write_pidfile(const char *pidfile)
if (lockf(fd, F_TLOCK, 0) == -1)
exit(0);
- len = sprintf(buf, "%d\n", getpid());
+ len = sprintf(buf, "%ld\n", (long)getpid());
if (write(fd, buf, len) != len)
barf_perror("Writing pid file %s", pidfile);
}
@@ -1901,7 +1901,7 @@ int main(int argc, char *argv[])
restore_existing_connections();
if (outputpid) {
- printf("%i\n", getpid());
+ printf("%ld\n", (long)getpid());
fflush(stdout);
}