From 35edb766593d019b89a3f40b6d6cdd2b50f18032 Mon Sep 17 00:00:00 2001 From: Leo C Date: Tue, 16 Dec 2014 16:03:06 +0100 Subject: Add copyright notice --- avr/getopt-min.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'avr/getopt-min.c') diff --git a/avr/getopt-min.c b/avr/getopt-min.c index 8e5dd6c..f5ad912 100644 --- a/avr/getopt-min.c +++ b/avr/getopt-min.c @@ -1,6 +1,3 @@ -#include "common.h" - - /* * Minimum getopt, original version was: */ @@ -13,7 +10,8 @@ */ /* $Id: getopt.c,v 1.2 1992/12/07 11:12:52 nickc Exp $ */ -#include +#include "common.h" /* definition of FLASH */ +#include int optind = 1; /* next argv[] index */ char *optarg; /* option parameter if any */ @@ -40,7 +38,7 @@ getopt( /* returns letter, '?', EOF */ ) return -1; } - + c = argv[optind][sp]; /* option letter */ osp = sp++; /* get ready for next letter */ @@ -72,4 +70,3 @@ getopt( /* returns letter, '?', EOF */ return c; } - -- cgit v1.2.3