aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-06 14:56:08 +0200
committerMax Kellermann <max@duempel.org>2008-10-06 14:56:08 +0200
commiteb28e1a9398a5423e247eeda12594fa0f0a0136b (patch)
tree090c195b960c10fb2968ddd8c8265a6147e110f5 /src/wreadln.h
parent3a92aa17478c901b1704fb935723783b11f193e7 (diff)
downloadmpd-eb28e1a9398a5423e247eeda12594fa0f0a0136b.tar.gz
mpd-eb28e1a9398a5423e247eeda12594fa0f0a0136b.tar.xz
mpd-eb28e1a9398a5423e247eeda12594fa0f0a0136b.zip
wreadln: use unsigned integers and size_t
Declare all screen position variables as "unsigned", and all buffer positions as "size_t". We don't need signed values.
Diffstat (limited to '')
-rw-r--r--src/wreadln.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wreadln.h b/src/wreadln.h
index 692f4fd69..e1efe1c50 100644
--- a/src/wreadln.h
+++ b/src/wreadln.h
@@ -22,7 +22,7 @@ gchar *wreadln(WINDOW *w, /* the curses window to use */
const gchar *prompt, /* the prompt string or NULL */
const gchar *initial_value, /* initial value or NULL for a empty line
* (char *) -1 = get value from history */
- gint x1, /* the maximum x position or 0 */
+ unsigned x1, /* the maximum x position or 0 */
GList **history, /* a pointer to a history list or NULL */
GCompletion *gcmp /* a GCompletion structure or NULL */
);
@@ -31,7 +31,7 @@ gchar *
wreadln_masked(WINDOW *w,
const gchar *prompt,
const gchar *initial_value,
- gint x1,
+ unsigned x1,
GList **history,
GCompletion *gcmp);