X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2Fwordsplit.c;h=75faf9e5e4005d3de4fe430de1b1c904837f8dae;hb=a09e840507c16357ec11b17a02e103c3a26adebc;hp=bd5d59d4d95bbb1283fa55f12ec6a8cdb5d3f02c;hpb=7b5e803963822e69a73d00ba62ac01b1c23f112c;p=chaz%2Ftar diff --git a/lib/wordsplit.c b/lib/wordsplit.c index bd5d59d..75faf9e 100644 --- a/lib/wordsplit.c +++ b/lib/wordsplit.c @@ -61,7 +61,7 @@ _wsplt_alloc_die (struct wordsplit *wsp) abort (); } -static void +static void __attribute__ ((__format__ (__printf__, 1, 2))) _wsplt_error (const char *fmt, ...) { va_list ap; @@ -795,7 +795,10 @@ expvar (struct wordsplit *wsp, const char *str, size_t len, else value = ""; } + /* FIXME: handle defstr */ + (void) defstr; + if (value) { if (flg & _WSNF_QUOTE) @@ -1461,7 +1464,7 @@ wordsplit_process_list (struct wordsplit *wsp, size_t start) } int -wordsplit_len (const char *command, size_t length, struct wordsplit *wsp, +wordsplit_len (const char *command, size_t length, struct wordsplit *wsp, int flags) { int rc;