Re: [patch] mark one instance of tun_fwd_ifnames as extern

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Sat, 12 Jan 2019, Hanno Böck wrote:

> Hi,
> 
> The global variable tun_fwd_ifnames is used in both session.c and
> serverloop.c.
> 
> This means one of them has to be marked as extern. Most compilers will
> ignore such errors, but it's not correct. E.g. in gcc you can enable a
> stricter handling of global variables with -fno-common.
> 
> See attached patch, which will mark it as extern in sessions.c. (the
> other variables in that block are already marked extern, so it seems
> fitting.)

Committed and added -fno-common to my local build flags :)

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux