Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1436649
| From | Emese Revfy <re.emese@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 3/3] Constify some function parameters |
| Date | 2016-07-05 01:40 +0200 |
| Message-ID | <rRlD3-3xx-5@gated-at.bofh.it> (permalink) |
| References | <rRlD3-3xx-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Initify needs const pointer types, the initify plugin caught some __printf
arguments that weren't const yet.
Signed-off-by: Emese Revfy <re.emese@gmail.com>
---
drivers/isdn/hisax/config.c | 4 ++--
drivers/isdn/hisax/hisax.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c
index bf04d2a..a7d53c9 100644
--- a/drivers/isdn/hisax/config.c
+++ b/drivers/isdn/hisax/config.c
@@ -659,7 +659,7 @@ int jiftime(char *s, long mark)
static u_char tmpbuf[HISAX_STATUS_BUFSIZE];
-void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt,
+void VHiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt,
va_list args)
{
/* if head == NULL the fmt contains the full info */
@@ -729,7 +729,7 @@ void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt,
}
}
-void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...)
+void HiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, ...)
{
va_list args;
diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h
index 6ead6314..338d040 100644
--- a/drivers/isdn/hisax/hisax.h
+++ b/drivers/isdn/hisax/hisax.h
@@ -1288,9 +1288,9 @@ int jiftime(char *s, long mark);
int HiSax_command(isdn_ctrl *ic);
int HiSax_writebuf_skb(int id, int chan, int ack, struct sk_buff *skb);
__printf(3, 4)
-void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...);
+void HiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, ...);
__printf(3, 0)
-void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, va_list args);
+void VHiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, va_list args);
void HiSax_reportcard(int cardnr, int sel);
int QuickHex(char *txt, u_char *p, int cnt);
void LogFrame(struct IsdnCardState *cs, u_char *p, int size);
--
2.8.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 3/3] Constify some function parameters Emese Revfy <re.emese@gmail.com> - 2016-07-05 01:40 +0200 [PATCH v2 3/3] Constify some function parameters Emese Revfy <re.emese@gmail.com> - 2016-07-06 18:40 +0200 Re: [PATCH v2 3/3] Constify some function parameters Emese Revfy <re.emese@gmail.com> - 2016-07-06 18:40 +0200
csiph-web