[PATCH] ping_pong: drop unecessary getopt include
ronnie sahlberg
ronniesahlberg at gmail.com
Sun Feb 21 20:01:21 MST 2010
Cehcked in. thanks.
On Sat, Feb 20, 2010 at 3:53 AM, Elia Pinto <gitter.spiros at gmail.com> wrote:
> ping_pong use SUSv1 getopt(3) library function and no
> the not portable getopt_log that requires the include
> getopt.h. getopt is defined in unistd.h.
> ---
> utils/ping_pong/ping_pong.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/utils/ping_pong/ping_pong.c b/utils/ping_pong/ping_pong.c
> index 6061ee7..098dacd 100644
> --- a/utils/ping_pong/ping_pong.c
> +++ b/utils/ping_pong/ping_pong.c
> @@ -37,9 +37,6 @@
> #include <string.h>
> #include <unistd.h>
> #include <fcntl.h>
> -#ifndef _AIX
> -#include <getopt.h>
> -#endif
> #include <sys/mman.h>
>
> static struct timeval tp1,tp2;
> --
> 1.6.6
>
More information about the samba-technical
mailing list