From: Shlomi Fish Date: Sat, 20 Nov 2021 07:15:03 +0000 (+0200) Subject: refactoring X-Git-Tag: fortune-mod-3.8.0~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb7bbace5986815855212a852d60db83d79104eb;p=fortune-mod refactoring --- diff --git a/fortune-mod/util/getopt.h b/fortune-mod/util/getopt.h index 3b4da8c..df0cf7f 100644 --- a/fortune-mod/util/getopt.h +++ b/fortune-mod/util/getopt.h @@ -1,15 +1,7 @@ -/* - * getopt.h - */ - -#ifndef GETOPT_H -#define GETOPT_H - +#pragma once extern int opterr, /* if error message should be printed */ optind, /* index into parent argv vector */ optopt, /* character checked for validity */ optreset; /* reset getopt */ extern char *optarg; /* argument associated with option */ int getopt(int nargc, char *const nargv[], const char *ostr); - -#endif /* !GETOPT_H */