From 8fd6a00b8c7f51e32b0e20c4880482438d768f2c Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 30 Nov 2010 19:37:47 -0500 Subject: assorted cleanup. remove assertions and unused format token --- README.pod | 2 -- expac.c | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.pod b/README.pod index b2282e0..e3d2ca8 100644 --- a/README.pod +++ b/README.pod @@ -105,8 +105,6 @@ The format argument allows the following interpreted sequences: %n package name - %o (reserved) - %p packager name %r repo diff --git a/expac.c b/expac.c index 50d304f..cd25050 100644 --- a/expac.c +++ b/expac.c @@ -7,9 +7,8 @@ #include #include #include -#include -#define FORMAT_TOKENS "BCDEFGLNOPRSabdfiklmnoprsuv%" +#define FORMAT_TOKENS "BCDEFGLNOPRSabdfiklmnprsuv%" #define ESCAPE_TOKENS "\"\\abefnrtv" alpm_list_t *dblist = NULL, *targets = NULL; @@ -133,8 +132,8 @@ static void usage(void) { fprintf(stderr, " Options:\n" " -Q, --local search local DB (default)\n" - " -S, --sync search sync DBs\n\n" - " -s, --search search for matching strings\n" + " -S, --sync search sync DBs\n" + " -s, --search search for matching strings\n\n" " -d, --delim separator used between packages (default: \"\\n\")\n" " -l, --listdelim separator used between list elements (default: \" \")\n" " -t, --timefmt date format passed to strftime (default: \"%%c\")\n\n" @@ -301,7 +300,6 @@ static void print_time(time_t timestamp) { static int print_pkg(pmpkg_t *pkg, const char *format) { const char *f; - assert(pkg); for (f = format; *f != '\0'; f++) { bool shortdeps = false; -- cgit v1.2.3-54-g00ecf