From 93d95abc69eb36989e4db574136b4e21ea390ce1 Mon Sep 17 00:00:00 2001 From: Sergey Date: Sat, 13 Sep 2014 15:17:30 -0700 Subject: [PATCH] Fixed warning in fsutil. --- tools/fsutil/Makefile | 2 +- tools/fsutil/manifest.c | 4 ++++ tools/fsutil/manifest.txt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/fsutil/Makefile b/tools/fsutil/Makefile index fa1a27b..8bed77a 100644 --- a/tools/fsutil/Makefile +++ b/tools/fsutil/Makefile @@ -17,7 +17,7 @@ all: $(PROG) install: $(PROG) install -s $(PROG) ${DESTDIR}/bin/$(PROG) clean: - rm -f *~ *.o *.lst *.dis $(PROG) + rm -rf *~ *.o *.lst *.dis $(PROG) $(PROG).dSYM $(PROG): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) diff --git a/tools/fsutil/manifest.c b/tools/fsutil/manifest.c index da20ec2..1788aff 100644 --- a/tools/fsutil/manifest.c +++ b/tools/fsutil/manifest.c @@ -131,7 +131,11 @@ static void add_entry (manifest_t *m, int filetype, char *path, char *link, /* * Compare two entries of file traverse scan. */ +#ifdef __APPLE__ +static int ftsent_compare (const FTSENT *const *a, const FTSENT *const *b) +#else static int ftsent_compare (const FTSENT **a, const FTSENT **b) +#endif { return strcmp((*a)->fts_name, (*b)->fts_name); } diff --git a/tools/fsutil/manifest.txt b/tools/fsutil/manifest.txt index c0a8a4c..2da13f1 100644 --- a/tools/fsutil/manifest.txt +++ b/tools/fsutil/manifest.txt @@ -1,5 +1,5 @@ # -# Skeleton of manifest file. +# Example of manifest file. # default owner 0