From eb7bbace5986815855212a852d60db83d79104eb Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 20 Nov 2021 09:15:03 +0200 Subject: [PATCH] refactoring --- fortune-mod/util/getopt.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 */ -- 2.40.0