]> granicus.if.org Git - fortune-mod/commitdiff
refactoring
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 20 Nov 2021 07:15:03 +0000 (09:15 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 20 Nov 2021 07:15:03 +0000 (09:15 +0200)
fortune-mod/util/getopt.h

index 3b4da8cdff04178b65121590e13b475b570ef895..df0cf7f1c5e273859ed382f44a87fb614d510af6 100644 (file)
@@ -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 */