diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-14 08:33:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-14 08:33:20 +0000 |
commit | 1359195c505df8af49b31460ec21e4e007f462c2 (patch) | |
tree | 4a1269296b98d9136e5ccb5fe08f8b08a5ad9b84 /source3/utils | |
parent | 7bc1cc7e07991641d436b2c8a35b52663d4c5c05 (diff) | |
download | samba-1359195c505df8af49b31460ec21e4e007f462c2.tar.gz samba-1359195c505df8af49b31460ec21e4e007f462c2.tar.bz2 samba-1359195c505df8af49b31460ec21e4e007f462c2.zip |
casts and defines to make solaris happy
(This used to be commit 77cf152c02b445f4b6e9de393936dd6e54e6f442)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/nbio.c | 2 | ||||
-rw-r--r-- | source3/utils/torture.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/nbio.c b/source3/utils/nbio.c index 71ac959f11..f72be36842 100644 --- a/source3/utils/nbio.c +++ b/source3/utils/nbio.c @@ -42,7 +42,7 @@ static void sigsegv(int sig) char line[200]; printf("segv at line %d\n", line_count); slprintf(line, sizeof(line), "/usr/X11R6/bin/xterm -e gdb /proc/%d/exe %d", - getpid(), getpid()); + (int)getpid(), (int)getpid()); system(line); exit(1); } diff --git a/source3/utils/torture.c b/source3/utils/torture.c index 4539f11a6a..fb4367283c 100644 --- a/source3/utils/torture.c +++ b/source3/utils/torture.c @@ -1416,7 +1416,7 @@ static void run_dirtest(int dummy) srandom(0); for (i=0;i<numops;i++) { fstring fname; - slprintf(fname, sizeof(fname), "%x", random()); + slprintf(fname, sizeof(fname), "%x", (int)random()); fnum = cli_open(&cli, fname, O_RDWR|O_CREAT, DENY_NONE); if (fnum == -1) { fprintf(stderr,"Failed to open %s\n", fname); @@ -1436,7 +1436,7 @@ static void run_dirtest(int dummy) srandom(0); for (i=0;i<numops;i++) { fstring fname; - slprintf(fname, sizeof(fname), "%x", random()); + slprintf(fname, sizeof(fname), "%x", (int)random()); cli_unlink(&cli, fname); } |