devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
Subject: [PATCH 02/10] Fix typo in type of srcpos_verror() et al.
Date: Sat,  4 Jan 2014 00:24:35 +1100	[thread overview]
Message-ID: <1388755483-27008-3-git-send-email-david@gibson.dropbear.id.au> (raw)
In-Reply-To: <1388755483-27008-1-git-send-email-david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>

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-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
---
 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);
-- 
1.8.4.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-01-03 13:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-03 13:24 [0/10] dtc: Assorted parsing and error reporting cleanups David Gibson
     [not found] ` <1388755483-27008-1-git-send-email-david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
2014-01-03 13:24   ` [PATCH 01/10] Remove unused srcpos_warn() function David Gibson
2014-01-03 13:24   ` David Gibson [this message]
2014-01-03 13:24   ` [PATCH 03/10] Fix indentation of srcpos_verror() David Gibson
2014-01-03 13:24   ` [PATCH 04/10] Fix memory leak in srcpos_verror() David Gibson
2014-01-03 13:24   ` [PATCH 05/10] Make srcpos_{v,}error() more widely useful David Gibson
2014-01-03 13:24   ` [PATCH 06/10] Move integer literal processing back to the lexer David Gibson
2014-01-03 13:24   ` [PATCH 07/10] Move character literal processing " David Gibson
2014-01-03 13:24   ` [PATCH 08/10] Die on failed /incbin/ seeks David Gibson
2014-01-03 13:24   ` [PATCH 09/10] Correct locations in parser error messaes David Gibson
2014-01-03 13:24   ` [PATCH 10/10] Clean up parser error messages David Gibson
2014-01-03 19:51   ` [0/10] dtc: Assorted parsing and error reporting cleanups Jon Loeliger
     [not found]     ` <E1VzAmD-0001xi-DA-CYoMK+44s/E@public.gmane.org>
2014-01-16  9:54       ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1388755483-27008-3-git-send-email-david@gibson.dropbear.id.au \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).