summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-09 05:57:34 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-09 05:57:34 +0000
commit6e4fb64e6141727b8144bb77265bf0a4a8450a39 (patch)
tree363bf9f26d72a0800bf1f0ddae0c15064c18239d /util.c
parent37863201ad549b11ce70ecfb1e348165637f2e44 (diff)
downloadrsync-6e4fb64e6141727b8144bb77265bf0a4a8450a39.tar.gz
rsync-6e4fb64e6141727b8144bb77265bf0a4a8450a39.tar.bz2
rsync-6e4fb64e6141727b8144bb77265bf0a4a8450a39.zip
added finddead target, removed dead code and made some functions
static
Diffstat (limited to 'util.c')
-rw-r--r--util.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/util.c b/util.c
index 70743a66..8b36474e 100644
--- a/util.c
+++ b/util.c
@@ -253,7 +253,7 @@ static int full_write(int desc, char *ptr, int len)
for an error.
derived from GNU C's cccp.c. */
-int safe_read(int desc, char *ptr, int len)
+static int safe_read(int desc, char *ptr, int len)
{
int n_chars;
@@ -410,14 +410,6 @@ int name_to_gid(char *name, gid_t *gid)
}
-/****************************************************************************
-check if a process exists.
-****************************************************************************/
-int process_exists(int pid)
-{
- return(kill(pid,0) == 0 || errno != ESRCH);
-}
-
/* lock a byte range in a open file */
int lock_range(int fd, int offset, int len)
{