From: Jan Engelhardt <jengelh@medozas.de>
To: netfilter-devel@vger.kernel.org
Cc: kaber@trash.net
Subject: [PATCH 1/3] libxtables: use const for vars holding literals
Date: Thu, 12 Feb 2009 07:19:11 +0100 [thread overview]
Message-ID: <1234419553-4147-2-git-send-email-jengelh@medozas.de> (raw)
In-Reply-To: <1234419553-4147-1-git-send-email-jengelh@medozas.de>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
include/xtables.h.in | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/include/xtables.h.in b/include/xtables.h.in
index 6712aac..ae1594a 100644
--- a/include/xtables.h.in
+++ b/include/xtables.h.in
@@ -186,8 +186,7 @@ enum xtables_exittype {
struct xtables_globals
{
unsigned int option_offset;
- char *program_version;
- char *program_name;
+ const char *program_name, *program_version;
struct option *opts;
void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3)));
};
--
1.6.1.2
next prev parent reply other threads:[~2009-02-12 6:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-12 6:19 'nother pull request Jan Engelhardt
2009-02-12 6:19 ` Jan Engelhardt [this message]
2009-02-12 6:19 ` [PATCH 2/3] libxt_string: fix undefined behavior/incorrect patlen calculation Jan Engelhardt
2009-02-12 6:19 ` [PATCH 3/3] libxtables: flush before fork Jan Engelhardt
2009-02-12 6:21 ` 'nother pull request Patrick McHardy
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=1234419553-4147-2-git-send-email-jengelh@medozas.de \
--to=jengelh@medozas.de \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.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).