diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 03:09:08 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 03:09:08 +0000 |
commit | 266ec4aac04cb8666234f18baa38ff6387f40cb3 (patch) | |
tree | 4d9d7c402de541088943102072b26bba14d480d8 /source3/lib/pidfile.c | |
parent | ecad7bea2cf9af30fa492ba943081275db16c0ee (diff) | |
download | samba-266ec4aac04cb8666234f18baa38ff6387f40cb3.tar.gz samba-266ec4aac04cb8666234f18baa38ff6387f40cb3.tar.bz2 samba-266ec4aac04cb8666234f18baa38ff6387f40cb3.zip |
Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.
Andrew Bartlett
(This used to be commit 9ef0d40c3f8aef52ab321dc065264c42065bc876)
Diffstat (limited to 'source3/lib/pidfile.c')
-rw-r--r-- | source3/lib/pidfile.c | 2 |
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); |