summaryrefslogtreecommitdiffstats
path: root/expac.c
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-11-30 19:37:47 -0500
committerDave Reisner <d@falconindy.com>2010-11-30 19:41:07 -0500
commit8fd6a00b8c7f51e32b0e20c4880482438d768f2c (patch)
tree48215f1ad4a47c10c1b80cf34fc2b3fa0a5b487d /expac.c
parent044c141f8999e3962eefff62553045b57fa2bc85 (diff)
downloadexpac-8fd6a00b8c7f51e32b0e20c4880482438d768f2c.tar.xz
assorted cleanup. remove assertions and unused format token
Diffstat (limited to 'expac.c')
-rw-r--r--expac.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/expac.c b/expac.c
index 50d304f..cd25050 100644
--- a/expac.c
+++ b/expac.c
@@ -7,9 +7,8 @@
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
-#include <assert.h>
-#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 <string> separator used between packages (default: \"\\n\")\n"
" -l, --listdelim <string> separator used between list elements (default: \" \")\n"
" -t, --timefmt <fmt> 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;