}
/* this is a public functions, but there is no prototype in a header file */
-static int lzo1x_999_compress_internal(const uint8_t *in , unsigned in_len,
+static int lzo1x_999_compress_internal(const uint8_t *in, unsigned in_len,
uint8_t *out, unsigned *out_len,
void *wrkmem,
unsigned good_length,
printf("%4d %s\n", i, st->history[i]);
}
+void FAST_FUNC free_line_input_t(line_input_t *n)
+{
+# if ENABLE_FEATURE_EDITING_SAVEHISTORY
+ int i = n->cnt_history;
+ while (i > 0)
+ free(n->history[--i]);
+#endif
+ free(n);
+}
+
# if ENABLE_FEATURE_EDITING_SAVEHISTORY
/* We try to ensure that concurrent additions to the history
* do not overwrite each other.
* than configured MAX_HISTORY lines.
*/
-void FAST_FUNC free_line_input_t(line_input_t *n)
-{
- int i = n->cnt_history;
- while (i > 0)
- free(n->history[--i]);
- free(n);
-}
-
/* state->flags is already checked to be nonzero */
static void load_history(line_input_t *st_parm)
{
return;
process_config_line_err:
- msg_logger_and_die(LOG_ERR, bb_msg_bad_config, msg , line);
+ msg_logger_and_die(LOG_ERR, bb_msg_bad_config, msg, line);
} /* End Function process_config_line */
static int do_servicing(int fd, unsigned long event_mask)
int sock, nbd;
int ro;
int proto_new; // 0 for old, 1 for new
+#if BB_MMU
char *data;
+#endif
// Make sure BLOCKDEV exists
nbd = xopen(device, O_RDWR);
ioctl(nbd, NBD_SET_SIZE_BLOCKS, size_blocks);
ioctl(nbd, NBD_CLEAR_SOCK);
ro = !!(old_nbd_header.flags & htons(2));
+#if BB_MMU
data = old_nbd_header.data;
+#endif
} else {
unsigned namelen;
uint16_t handshake_flags;
ioctl(nbd, NBD_SET_FLAGS,
ntohs(new_nbd_header.transmission_flags));
ro = !!(new_nbd_header.transmission_flags & htons(2));
+#if BB_MMU
data = new_nbd_header.data;
+#endif
}
if (ioctl(nbd, BLKROSET, &ro) < 0) {
#define OFS(field) offsetof(struct server_config_t, field)
static const struct config_keyword keywords[] = {
- /* keyword handler variable address default */
+ /* keyword handler variable address default */
{"start" , udhcp_str2nip , OFS(start_ip ), "192.168.0.20"},
{"end" , udhcp_str2nip , OFS(end_ip ), "192.168.0.254"},
{"interface" , read_str , OFS(interface ), "eth0"},
#endif
static char *encode_then_expand_vararg(const char *str, int handle_squotes, int do_unbackslash)
{
-#if !BASH_PATTERN_SUBST
+#if !BASH_PATTERN_SUBST && ENABLE_HUSH_CASE
const int do_unbackslash = 0;
#endif
char *exp_str;