aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /include/libbb.h
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 0006e7e55..4f46cf8c5 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -602,7 +602,7 @@ len_and_sockaddr* xhost_and_af2sockaddr(const char *host, int port, sa_family_t
602/* Assign sin[6]_port member if the socket is an AF_INET[6] one, 602/* Assign sin[6]_port member if the socket is an AF_INET[6] one,
603 * otherwise no-op. Useful for ftp. 603 * otherwise no-op. Useful for ftp.
604 * NB: does NOT do htons() internally, just direct assignment. */ 604 * NB: does NOT do htons() internally, just direct assignment. */
605void set_nport(len_and_sockaddr *lsa, unsigned port) FAST_FUNC; 605void set_nport(struct sockaddr *sa, unsigned port) FAST_FUNC;
606/* Retrieve sin[6]_port or return -1 for non-INET[6] lsa's */ 606/* Retrieve sin[6]_port or return -1 for non-INET[6] lsa's */
607int get_nport(const struct sockaddr *sa) FAST_FUNC; 607int get_nport(const struct sockaddr *sa) FAST_FUNC;
608/* Reverse DNS. Returns NULL on failure. */ 608/* Reverse DNS. Returns NULL on failure. */
@@ -1389,8 +1389,9 @@ void read_key_ungets(char *buffer, const char *str, unsigned len) FAST_FUNC;
1389 1389
1390#if ENABLE_FEATURE_EDITING 1390#if ENABLE_FEATURE_EDITING
1391/* It's NOT just ENABLEd or disabled. It's a number: */ 1391/* It's NOT just ENABLEd or disabled. It's a number: */
1392# ifdef CONFIG_FEATURE_EDITING_HISTORY 1392# if defined CONFIG_FEATURE_EDITING_HISTORY && CONFIG_FEATURE_EDITING_HISTORY > 0
1393# define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0) 1393# define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0)
1394unsigned size_from_HISTFILESIZE(const char *hp);
1394# else 1395# else
1395# define MAX_HISTORY 0 1396# define MAX_HISTORY 0
1396# endif 1397# endif
@@ -1400,6 +1401,7 @@ typedef struct line_input_t {
1400# if MAX_HISTORY 1401# if MAX_HISTORY
1401 int cnt_history; 1402 int cnt_history;
1402 int cur_history; 1403 int cur_history;
1404 int max_history; /* must never be <= 0 */
1403# if ENABLE_FEATURE_EDITING_SAVEHISTORY 1405# if ENABLE_FEATURE_EDITING_SAVEHISTORY
1404 unsigned cnt_history_in_file; 1406 unsigned cnt_history_in_file;
1405 const char *hist_file; 1407 const char *hist_file;