summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-11-25 23:13:30 +0100
committerDan McGee <dan@archlinux.org>2007-11-25 23:13:30 +0100
commit11133da587ebc1c78478cfcd05d5e8298bd61b84 (patch)
treee97f332ff9fa5ed765149693eec6db6917254278 /src/pacman/pacman.c
parent7d37d9278d0ab6eb46ec4689c8091780382cbb95 (diff)
downloadpacman-11133da587ebc1c78478cfcd05d5e8298bd61b84.tar.gz
pacman-11133da587ebc1c78478cfcd05d5e8298bd61b84.tar.xz
Move mbasename from pacman.c to util.c
This function can be useful in other places. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 4c24d10b..3f4af22c 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -229,28 +229,6 @@ static void cleanup(int signum)
exit(signum);
}
-/** Parse the basename of a program from a path.
-* Grabbed from the uClibc source.
-* @param path path to parse basename from
-*
-* @return everything following the final '/'
-*/
-static char *mbasename(const char *path)
-{
- const char *s;
- const char *p;
-
- p = s = path;
-
- while (*s) {
- if (*s++ == '/') {
- p = s;
- }
- }
-
- return (char *)p;
-}
-
/** Parse command-line arguments for each operation.
* @param argc argc
* @param argv argv