Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
p2[1] == p1[1]) {
unsigned i;
assert(lzo_memcmp(bp,&b[node],3) == 0);
p2[1] == p1[1]) {
unsigned i;
assert(lzo_memcmp(bp,&b[node],3) == 0);
p1 += 2; p2 += 2;
do {} while (++p1 < px && *p1 == *++p2);
i = p1-bp;
p1 += 2; p2 += 2;
do {} while (++p1 < px && *p1 == *++p2);
i = p1-bp;
/* This coding is derived from Alexander Lehmann's pngcheck code. */
static void check_magic(void)
{
/* This coding is derived from Alexander Lehmann's pngcheck code. */
static void check_magic(void)
{
- unsigned char magic[sizeof(lzop_magic)];
+ unsigned char magic[sizeof(lzop_magic)];
xread(0, magic, sizeof(magic));
if (memcmp(magic, lzop_magic, sizeof(lzop_magic)) != 0)
bb_error_msg_and_die("bad magic number");
xread(0, magic, sizeof(magic));
if (memcmp(magic, lzop_magic, sizeof(lzop_magic)) != 0)
bb_error_msg_and_die("bad magic number");
/* skip extra field [not used yet] */
if (h->flags & F_H_EXTRA_FIELD) {
uint32_t k;
/* skip extra field [not used yet] */
if (h->flags & F_H_EXTRA_FIELD) {
uint32_t k;
/* note: the checksum also covers the length */
init_chksum(&G.chksum_in);
h->extra_field_len = f_read32();
/* note: the checksum also covers the length */
init_chksum(&G.chksum_in);
h->extra_field_len = f_read32();
static smallint do_lzo_decompress(void)
{
header_t header;
static smallint do_lzo_decompress(void)
{
header_t header;
check_magic();
p_header(&header);
return lzo_decompress(&header);
check_magic();
p_header(&header);
return lzo_decompress(&header);
safe_strncpy(command_ps, src, maxsize);
return strlen(command_ps);
}
safe_strncpy(command_ps, src, maxsize);
return strlen(command_ps);
}
-# if ENABLE_FEATURE_TAB_COMPLETION
+# if ENABLE_FEATURE_TAB_COMPLETION
static void save_string(char *dst, int maxsize)
{
safe_strncpy(dst, command_ps, maxsize);
static void save_string(char *dst, int maxsize)
{
safe_strncpy(dst, command_ps, maxsize);
- * hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [--long]
+ * hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [--long]
* [-i] [--ip-address] [-s] [--short] [-y] [--yp] [--nis]
*
* hostname [-v] [-F filename] [--file filename] / [hostname]
* [-i] [--ip-address] [-s] [--short] [-y] [--yp] [--nis]
*
* hostname [-v] [-F filename] [--file filename] / [hostname]
//" secs %x"
//" flags %x"
" ciaddr %x"
//" secs %x"
//" flags %x"
" ciaddr %x"
" siaddr %x"
" giaddr %x"
//" chaddr %s"
" siaddr %x"
" giaddr %x"
//" chaddr %s"
if (!G.memleak_value)
G.memleak_value = l;
if (!G.memleak_value)
G.memleak_value = l;
l -= G.memleak_value;
if ((long)l < 0)
l = 0;
l -= G.memleak_value;
if ((long)l < 0)
l = 0;