git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] sh-i18n--envsubst.c: do not #include getopt.h

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jun 17, 2011, 18:19 UTC
Message-ID
<kRqfchEd_hGmm2-6DxLIF_ZcWaZwm2iR22QJo3x5ntYrK5NZzsgLexeDbn1dSo9BMP8SLjkiTqiNION3P1CL0w@cipher.nrlssc.navy.mil>
From: Brandon Casey <drafnel@gmail.com>

The getopt.h header file is not used. It's inclusion is left over from the original version of this source. Additionally, getopt.h does not exist on all platforms (SunOS 5.7) and will cause a compilation failure. So, let's remove it.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 sh-i18n--envsubst.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/sh-i18n--envsubst.c b/sh-i18n--envsubst.c
index 2eb0ee4..9d2e971 100644
--- a/sh-i18n--envsubst.c
+++ b/sh-i18n--envsubst.c
@@ -51,7 +51,6 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #include <errno.h>
-#include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-- 
1.7.6.rc1.3.g600a62
Next: Junio C Hamano
Message 1 of 2 in “sh-i18n--envsubst.c: do not #include getopt.h”
  1. sh-i18n--envsubst.c: do not #include getopt.hBrandon Casey, Jun 17, 2011
  2. Junio C HamanoJun 17, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.