[Frugalware-git] fw32: fw32.c: remove unused xstrdup function
James Buren
ryuo at frugalware.org
Wed Nov 9 23:28:25 CET 2011
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=ab5c803daf843e95c6333fcbb2a2531254c5aa5b
commit ab5c803daf843e95c6333fcbb2a2531254c5aa5b
Author: James Buren <ryuo at frugalware.org>
Date: Wed Nov 9 16:42:24 2011 -0600
fw32.c: remove unused xstrdup function
diff --git a/Makefile b/Makefile
index da1ac92..aa79963 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ install: all
mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/etc/fw32 $(DESTDIR)/lib/systemd/system
mkdir -p $(DESTDIR)/{proc,sys,dev,etc,home,tmp,mnt,media}
mkdir -p $(DESTDIR)/usr/share/{kde,icons,fonts,themes}
- mkdir -p $(DESTDIR)/var/{tmp,cache/pacman-g2}
+ mkdir -p $(DESTDIR)/var/{tmp,cache/pacman-g2,fst}
cp fw32 $(DESTDIR)/usr/bin
cp pacman-g2.conf $(DESTDIR)/etc/fw32
cp fw32.service $(DESTDIR)/lib/systemd/system
@@ -27,3 +27,4 @@ install: all
ln -sf fw32 $(DESTDIR)/usr/bin/fw32-umount-all
ln -sf fw32 $(DESTDIR)/usr/bin/fw32-update
ln -sf fw32 $(DESTDIR)/usr/bin/fw32-install-package
+ ln -sf fw32 $(DESTDIR)/usr/bin/fw32-merge
diff --git a/fw32.c b/fw32.c
index 6ffafc1..6719734 100644
--- a/fw32.c
+++ b/fw32.c
@@ -87,21 +87,6 @@ xmalloc(size_t n)
return p;
}
-#if 0
-static char *
-xstrdup(const char *s)
-{
- char *p;
-
- p = strdup(s);
-
- if(!p)
- error("strdup: %s\n",strerror(errno));
-
- return p;
-}
-#endif
-
static size_t
args_len(char **args)
{
More information about the Frugalware-git
mailing list