]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: log: One const should be enough.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 6 Sep 2018 16:14:09 +0000 (18:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Sep 2018 16:52:15 +0000 (18:52 +0200)
"const const" doesn't bring much more constness, so only use one.

include/proto/log.h

index 7fb1f04df89bc3f3e5143ae230ae8055b11ba2da..b994470dd268c1a1c866dfd95d5c8312b20bcc0b 100644 (file)
@@ -151,7 +151,7 @@ int get_log_facility(const char *fac);
  *
  * Return the adress of the \0 character, or NULL on error
  */
-char *lf_text_len(char *dst, const const char *src, size_t len, size_t size, const struct logformat_node *node);
+char *lf_text_len(char *dst, const char *src, size_t len, size_t size, const struct logformat_node *node);
 
 /*
  * Write a IP adress to the log string