summaryrefslogtreecommitdiffstats
path: root/libexec/getNAME/getNAME.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/getNAME/getNAME.c')
-rw-r--r--libexec/getNAME/getNAME.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/getNAME/getNAME.c b/libexec/getNAME/getNAME.c
index 2ab64b4..2961ecf 100644
--- a/libexec/getNAME/getNAME.c
+++ b/libexec/getNAME/getNAME.c
@@ -29,6 +29,9 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: getNAME.c,v 1.4 1997/02/22 14:21:35 peter Exp $
+ *
*/
#ifndef lint
@@ -70,7 +73,7 @@ main(argc, argv)
extern int optind;
int ch;
- while ((ch = getopt(argc, argv, "itw")) != EOF)
+ while ((ch = getopt(argc, argv, "itw")) != -1)
switch(ch) {
case 'i':
intro = 1;
@@ -81,7 +84,6 @@ main(argc, argv)
case 'w':
typeflag = 1;
break;
- case '?':
default:
usage();
}
@@ -334,6 +336,6 @@ again:
void
usage()
{
- (void)fprintf(stderr, "usage: getNAME [-it] file ...\n");
+ (void)fprintf(stderr, "usage: getNAME [-itw] file ...\n");
exit(1);
}
OpenPOWER on IntegriCloud