- int putbuf_func ARGS((const char *s, size_t len));
+ int (*putbuf_func) ARGS((const char *, size_t)); for pcc - did not recognise pointer to function - argument names shadowed other arguments
This commit is contained in:
parent
ff4e4fcdee
commit
73d0ac941f
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: edit.c,v 1.23 2009/11/24 16:00:42 seanb Exp $ */
|
/* $NetBSD: edit.c,v 1.24 2010/04/02 20:19:40 plunky Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command line editing - common code
|
* Command line editing - common code
|
||||||
@ -7,7 +7,7 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: edit.c,v 1.23 2009/11/24 16:00:42 seanb Exp $");
|
__RCSID("$NetBSD: edit.c,v 1.24 2010/04/02 20:19:40 plunky Exp $");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -1065,7 +1065,7 @@ int
|
|||||||
x_escape(s, len, putbuf_func)
|
x_escape(s, len, putbuf_func)
|
||||||
const char *s;
|
const char *s;
|
||||||
size_t len;
|
size_t len;
|
||||||
int putbuf_func ARGS((const char *s, size_t len));
|
int (*putbuf_func) ARGS((const char *, size_t));
|
||||||
{
|
{
|
||||||
size_t add, wlen;
|
size_t add, wlen;
|
||||||
const char *ifs = str_val(local("IFS", 0));
|
const char *ifs = str_val(local("IFS", 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user