treewrite: use Lindent to reformat to kernel coding style Use the kernels "Lindent" script to reformat files using kernel coding style. This should make subsequent refactoring much easier. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg: discard empty control file fields If the resulting string is empty after whitespace trimming, free it and store NULL instead of an empty string buffer. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg: do not rely on getline() OpenWrt/LEDE uses opkg on both the target systems and the build hosts and not every supported host system provides a getline() implementation. Rewrite affected code to not require the getline() function. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Create parse_util with some of the non-public functions from pkg_parse.c git-svn-id: http://opkg.googlecode.com/svn/trunk@611 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358