From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 4/5] xl: Command line: Make COMMON_LONG_OPTS include sentinel Date: Fri, 17 Jul 2015 18:09:59 +0100 Message-ID: <55A936E7.6020908@citrix.com> References: <1437152451-22507-1-git-send-email-ian.jackson@eu.citrix.com> <1437152451-22507-4-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1437152451-22507-4-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson , xen-devel@lists.xensource.com Cc: Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 17/07/15 18:00, Ian Jackson wrote: > No functional change. > > Signed-off-by: Ian Jackson > --- > tools/libxl/xl_cmdimpl.c | 51 ++++++++++++++++------------------------------ > 1 file changed, 18 insertions(+), 33 deletions(-) > > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > index 803c627..1fa98e6 100644 > --- a/tools/libxl/xl_cmdimpl.c > +++ b/tools/libxl/xl_cmdimpl.c > @@ -3025,7 +3025,8 @@ static int64_t parse_mem_size_kb(const char *mem) > return kbytes; > } > Perhaps a comment stating that COMMON_LONG_OPTS must now be the final entry in an option list? Previously it was technically able to live anywhere in the list. ~Andrew > -#define COMMON_LONG_OPTS {"help", 0, 0, 'h'} > +#define COMMON_LONG_OPTS {"help", 0, 0, 'h'}, \ > + {0, 0, 0, 0} > > /* > * Callers should use SWITCH_FOREACH_OPT in preference to calling this >