Module Name:    src
Committed By:   christos
Date:           Thu Jul 28 00:43:13 UTC 2011

Modified Files:
        src/lib/libedit: hist.c

Log Message:
fix confusion with wide functions.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libedit/hist.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/hist.c
diff -u src/lib/libedit/hist.c:1.17 src/lib/libedit/hist.c:1.18
--- src/lib/libedit/hist.c:1.17	Wed Dec 30 18:54:52 2009
+++ src/lib/libedit/hist.c	Wed Jul 27 20:43:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: hist.c,v 1.17 2009/12/30 23:54:52 christos Exp $	*/
+/*	$NetBSD: hist.c,v 1.18 2011/07/28 00:43:12 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)hist.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: hist.c,v 1.17 2009/12/30 23:54:52 christos Exp $");
+__RCSID("$NetBSD: hist.c,v 1.18 2011/07/28 00:43:12 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -158,7 +158,7 @@
 {
 	const Char *str;
 	int num;
-	HistEvent ev;
+	TYPE(HistEvent) ev;
 
 	if (el->el_history.ref == NULL)
 		return (-1);
@@ -178,10 +178,10 @@
 	num = (int)Strtol(argv[2], NULL, 0);
 
 	if (Strcmp(argv[1], STR("size")) == 0)
-		return history(el->el_history.ref, &ev, H_SETSIZE, num);
+		return FUNW(history)(el->el_history.ref, &ev, H_SETSIZE, num);
 
 	if (Strcmp(argv[1], STR("unique")) == 0)
-		return history(el->el_history.ref, &ev, H_SETUNIQUE, num);
+		return FUNW(history)(el->el_history.ref, &ev, H_SETUNIQUE, num);
 
 	return -1;
 }

Reply via email to