aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-17 14:28:53 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-17 14:28:53 +0000
commitcb448fe01bbe75ef31c3190e8b63b0e1a320ffb4 (patch)
tree9757477193c1b8f3be9a772cabfb1ef92639240e /runit
parentffae845cfd0a0b9872827d806984841d4cfee104 (diff)
downloadbusybox-cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4.tar.gz
libbb: introduce and use xrename and rename_or_warn.
Diffstat (limited to 'runit')
-rw-r--r--runit/runsv.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index 02271d68b..02dcf50ca 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -157,16 +157,6 @@ static int open_trunc_or_warn(const char *name)
return fd;
}
-static int rename_or_warn(const char *old, const char *new)
-{
- if (rename(old, new) == -1) {
- bb_perror_msg("%s: warning: cannot rename %s to %s",
- dir, old, new);
- return -1;
- }
- return 0;
-}
-
static void update_status(struct svdir *s)
{
ssize_t sz;