do not store 1st two bytes of compressed help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d7874ed1d4
commit
263cff9a2f
@ -24,7 +24,7 @@ echo 'static const char packed_usage[] ALIGN1 = {'
|
|||||||
## | grep -v '^$' \
|
## | grep -v '^$' \
|
||||||
## | $SED -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
|
## | $SED -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
|
||||||
|
|
||||||
"$loc/usage" | bzip2 -1 | od -v -t x1 \
|
"$loc/usage" | bzip2 -1 | dd bs=2 skip=1 | od -v -t x1 \
|
||||||
| $SED -e 's/^[^ ]*//' \
|
| $SED -e 's/^[^ ]*//' \
|
||||||
| $SED -e 's/ //g' \
|
| $SED -e 's/ //g' \
|
||||||
| grep -v '^$' \
|
| grep -v '^$' \
|
||||||
|
@ -73,8 +73,7 @@ static const char *unpack_usage_messages(void)
|
|||||||
|
|
||||||
i = start_bunzip(&bd,
|
i = start_bunzip(&bd,
|
||||||
/* src_fd: */ -1,
|
/* src_fd: */ -1,
|
||||||
//FIXME: can avoid storing these 2 bytes!
|
/* inbuf: */ (void *)packed_usage,
|
||||||
/* inbuf: */ (void *)packed_usage + 2,
|
|
||||||
/* len: */ sizeof(packed_usage));
|
/* len: */ sizeof(packed_usage));
|
||||||
/* read_bunzip can longjmp to start_bunzip, and ultimately
|
/* read_bunzip can longjmp to start_bunzip, and ultimately
|
||||||
* end up here with i != 0 on read data errors! Not trivial */
|
* end up here with i != 0 on read data errors! Not trivial */
|
||||||
|
Loading…
Reference in New Issue
Block a user