This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 04/13] constify maint.c


On 07/22/2014 07:55 PM, Tom Tromey wrote:

>  {
>    flagword flags = bfd_get_section_flags (abfd, asect);
>    const char *name = bfd_section_name (abfd, asect);
> +  const char *arg = datum;
>  
> -  if (arg == NULL || *((char *) arg) == '\0'
> -      || match_substring ((char *) arg, name)
> -      || match_bfd_flags ((char *) arg, flags))
> +  if (arg == NULL || *(arg) == '\0'

I wouldn't mind removing the unnecessary parens
in '*(arg)' while we're touching this.

But, looks good.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]