summaryrefslogtreecommitdiff
path: root/source3/lib/pidfile.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-22 12:22:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-22 12:22:06 +0000
commit7e110f782a55d4dca1fb3fedd95bf059c9ec0638 (patch)
tree2e27934bd9c23ed79a80d9ea4a02396cd0516b3c /source3/lib/pidfile.c
parent0dde23a7b24edf1cbf4d7d7e5afea485e37498e5 (diff)
downloadsamba-7e110f782a55d4dca1fb3fedd95bf059c9ec0638.tar.gz
samba-7e110f782a55d4dca1fb3fedd95bf059c9ec0638.tar.bz2
samba-7e110f782a55d4dca1fb3fedd95bf059c9ec0638.zip
More signed/unsigned fixes (yes, I run with funny compiler options) and
make x_fwrite() match fwrite() in returning a size_t. Andrew Bartlett (This used to be commit 2943c695787b742e9a96b2eefe2d75f681bacf7c)
Diffstat (limited to 'source3/lib/pidfile.c')
-rw-r--r--source3/lib/pidfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c
index 16a12656b3..1a462bf128 100644
--- a/source3/lib/pidfile.c
+++ b/source3/lib/pidfile.c
@@ -100,7 +100,7 @@ void pidfile_create(const char *name)
memset(buf, 0, sizeof(buf));
slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) sys_getpid());
- if (write(fd, buf, strlen(buf)) != strlen(buf)) {
+ if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
DEBUG(0,("ERROR: can't write to file %s: %s\n",
pidFile, strerror(errno)));
exit(1);