mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Fix typo in type of srcpos_verror() et al.
The srcpos_verror() and srcpos_error() functions declare the format string as 'char const *' instead of 'const char *'. Fix it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
6efd9065e6
commit
a1e6da8aed
2 changed files with 4 additions and 4 deletions
4
srcpos.c
4
srcpos.c
|
@ -291,7 +291,7 @@ srcpos_string(struct srcpos *pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
srcpos_verror(struct srcpos *pos, char const *fmt, va_list va)
|
srcpos_verror(struct srcpos *pos, const char *fmt, va_list va)
|
||||||
{
|
{
|
||||||
const char *srcstr;
|
const char *srcstr;
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ srcpos_verror(struct srcpos *pos, char const *fmt, va_list va)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
srcpos_error(struct srcpos *pos, char const *fmt, ...)
|
srcpos_error(struct srcpos *pos, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
|
|
||||||
|
|
4
srcpos.h
4
srcpos.h
|
@ -107,9 +107,9 @@ extern struct srcpos *srcpos_copy(struct srcpos *pos);
|
||||||
extern char *srcpos_string(struct srcpos *pos);
|
extern char *srcpos_string(struct srcpos *pos);
|
||||||
extern void srcpos_dump(struct srcpos *pos);
|
extern void srcpos_dump(struct srcpos *pos);
|
||||||
|
|
||||||
extern void srcpos_verror(struct srcpos *pos, char const *, va_list va)
|
extern void srcpos_verror(struct srcpos *pos, const char *, va_list va)
|
||||||
__attribute__((format(printf, 2, 0)));
|
__attribute__((format(printf, 2, 0)));
|
||||||
extern void srcpos_error(struct srcpos *pos, char const *, ...)
|
extern void srcpos_error(struct srcpos *pos, const char *, ...)
|
||||||
__attribute__((format(printf, 2, 3)));
|
__attribute__((format(printf, 2, 3)));
|
||||||
|
|
||||||
extern void srcpos_set_line(char *f, int l);
|
extern void srcpos_set_line(char *f, int l);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue