Home
last modified time | relevance | path

Searched hist:"28984 f255263ee10de1fc3d0f86e9af7e562450d" (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/newsyslog/
H A DMakefilediff 28984f255263ee10de1fc3d0f86e9af7e562450d Wed Aug 08 19:26:51 CEST 2018 Mark Johnston <markj@FreeBSD.org> Simplify compression code.

- Remove the compression suffix macros and move them directly into the
compress_type array.
- Remove the hardcoded sizes on the suffix and compression args arrays.
- Simplify the compression args arrays at the expense of a __DECONST
when calling execv().
- Rewrite do_zipwork. The COMPRESS_* macros can directly index the
compress_types array, so the outer loop is not needed. Convert
fixed-length strings into asprintf or sbuf calls.

Submitted by: Dan Nelson <dnelson_1901@yahoo.com>
Reviewed by: gad
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D16518
H A Dnewsyslog.cdiff 28984f255263ee10de1fc3d0f86e9af7e562450d Wed Aug 08 19:26:51 CEST 2018 Mark Johnston <markj@FreeBSD.org> Simplify compression code.

- Remove the compression suffix macros and move them directly into the
compress_type array.
- Remove the hardcoded sizes on the suffix and compression args arrays.
- Simplify the compression args arrays at the expense of a __DECONST
when calling execv().
- Rewrite do_zipwork. The COMPRESS_* macros can directly index the
compress_types array, so the outer loop is not needed. Convert
fixed-length strings into asprintf or sbuf calls.

Submitted by: Dan Nelson <dnelson_1901@yahoo.com>
Reviewed by: gad
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D16518