[Crosstoolchain-logs] [device-tree-compiler] 108/198: Fix typo in type of srcpos_verror() et al.

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.

commit a1e6da8aed6b945802f851c8df229a264b6b3524
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Wed Jan 1 23:16:39 2014 +1100

    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 at gibson.dropbear.id.au>
---
 srcpos.c | 4 ++--
 srcpos.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpos.c b/srcpos.c
index 06ef06d..71a73b8 100644
--- a/srcpos.c
+++ b/srcpos.c
@@ -291,7 +291,7 @@ srcpos_string(struct srcpos *pos)
 }
 
 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;
 
@@ -303,7 +303,7 @@ srcpos_verror(struct srcpos *pos, char const *fmt, va_list va)
 }
 
 void
-srcpos_error(struct srcpos *pos, char const *fmt, ...)
+srcpos_error(struct srcpos *pos, const char *fmt, ...)
 {
 	va_list va;
 
diff --git a/srcpos.h b/srcpos.h
index 7f0eaea..46ea08a 100644
--- a/srcpos.h
+++ b/srcpos.h
@@ -107,9 +107,9 @@ extern struct srcpos *srcpos_copy(struct srcpos *pos);
 extern char *srcpos_string(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)));
-extern void srcpos_error(struct srcpos *pos, char const *, ...)
+extern void srcpos_error(struct srcpos *pos, const char *, ...)
      __attribute__((format(printf, 2, 3)));
 
 extern void srcpos_set_line(char *f, int l);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list