Subject: lib/29738: editline(3) typo
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <rpaulo@netbsd-pt.org>
List: netbsd-bugs
Date: 03/19/2005 15:32:00
>Number:         29738
>Category:       lib
>Synopsis:       editline(3) has a typo in tok_line() definition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 19 15:32:00 +0000 2005
>Originator:     Rui Paulo
>Release:        NetBSD 2.0_STABLE
>Organization:
>Environment:
System: NetBSD proton.fnop.net 2.0_STABLE NetBSD 2.0_STABLE (PROTON) #5: Thu Mar 3 00:16:38 WET 2005 rpaulo@proton.fnop.net:/home/rpaulo/netbsd/obj/sys/arch/i386/compile/PROTON i386
Architecture: i386
Machine: i386
>Description:
editline(3), libedit's man page, has a typo regarding to the definition of
tok_line() and tok_str:

  int
  tok_line(Tokenizer *t, const LineInfo *li, int *argc, const char *argv[],
	   int *cursorc, int *cursoro);
  int
  tok_str(Tokenizer *t, const char *str, int *argc, const char *argv[]);

when in fact /usr/include/histedit.h has a different definition:
  int              tok_line(Tokenizer *, const LineInfo *,  
                      int *, const char ***, int *, int *);
  int              tok_str(Tokenizer *, const char *,
		      int *, const char ***);
>How-To-Repeat:
code and man page reading.
>Fix:
Index: editline.3
===================================================================
RCS file: /cvsroot/src/lib/libedit/editline.3,v
retrieving revision 1.45
diff -u -r1.45 editline.3
--- editline.3  15 Apr 2004 08:13:29 -0000      1.45
+++ editline.3  19 Mar 2005 15:30:58 -0000
@@ -105,9 +105,9 @@
 .Ft void
 .Fn tok_reset "Tokenizer *t"
 .Ft int
-.Fn tok_line "Tokenizer *t" "const LineInfo *li" "int *argc" "const char *argv[]" "int *cursorc" "int *cursoro"
+.Fn tok_line "Tokenizer *t" "const LineInfo *li" "int *argc" "const char **argv[]" "int *cursorc" "int *cursoro"
 .Ft int
-.Fn tok_str "Tokenizer *t" "const char *str" "int *argc" "const char *argv[]"
+.Fn tok_str "Tokenizer *t" "const char *str" "int *argc" "const char **argv[]"
 .Sh DESCRIPTION
 The
 .Nm