From: Stephane Ouellette <ouellettes@videotron.ca>
To: Harald Welte <laforge@netfilter.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: [PATCH][COSMETIC] C99 initializers for libip6t_ah.c
Date: Tue, 12 Aug 2003 13:35:52 -0400 [thread overview]
Message-ID: <3F392578.5090908@videotron.ca> (raw)
[-- Attachment #1: Type: text/plain, Size: 134 bytes --]
Harald,
this patch includes C99 initializers and indentation cleanups for
libip6t_ah.c.
Please apply.
Stephane Ouellette
[-- Attachment #2: libip6t_ah.c.patch --]
[-- Type: text/plain, Size: 1438 bytes --]
--- netfilter.orig/userspace/extensions/libip6t_ah.c Wed May 29 09:08:15 2002
+++ netfilter/userspace/extensions/libip6t_ah.c Mon Aug 11 21:35:39 2003
@@ -21,10 +21,10 @@
}
static struct option opts[] = {
- { "ahspi", 1, 0, '1' },
- { "ahlen", 1, 0, '2' },
- { "ahres", 0, 0, '3' },
- {0}
+ { .name = "ahspi", .has_arg = 1, .flag = 0, .val = '1' },
+ { .name = "ahlen", .has_arg = 1, .flag = 0, .val = '2' },
+ { .name = "ahres", .has_arg = 0, .flag = 0, .val = '3' },
+ { .name = 0 }
};
static u_int32_t
@@ -33,7 +33,7 @@
unsigned long int spi;
char* ep;
- spi = strtoul(spistr,&ep,0) ;
+ spi = strtoul(spistr, &ep, 0);
if ( spistr == ep ) {
exit_error(PARAMETER_PROBLEM,
@@ -212,23 +212,21 @@
if (ahinfo->hdrres != 0 ) {
printf("--ahres ");
}
-
}
static
-struct ip6tables_match ah
-= { NULL,
- "ah",
- IPTABLES_VERSION,
- IP6T_ALIGN(sizeof(struct ip6t_ah)),
- IP6T_ALIGN(sizeof(struct ip6t_ah)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts
+struct ip6tables_match ah = {
+ .name = "ah",
+ .version = IPTABLES_VERSION,
+ .size = IP6T_ALIGN(sizeof(struct ip6t_ah)),
+ .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_ah)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print,
+ .save = &save,
+ .extra_opts = opts
};
void
reply other threads:[~2003-08-12 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3F392578.5090908@videotron.ca \
--to=ouellettes@videotron.ca \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.