mesg.c (9b50d9027575220cb6dd09b3e62f03f511e908b8) | mesg.c (1c8af8787354e20c2b38cab5801698133ff8b403) |
---|---|
1/* 2 * Copyright (c) 1987, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 51 unchanged lines hidden (view full) --- 60main(argc, argv) 61 int argc; 62 char *argv[]; 63{ 64 struct stat sb; 65 char *tty; 66 int ch; 67 | 1/* 2 * Copyright (c) 1987, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 51 unchanged lines hidden (view full) --- 60main(argc, argv) 61 int argc; 62 char *argv[]; 63{ 64 struct stat sb; 65 char *tty; 66 int ch; 67 |
68 while ((ch = getopt(argc, argv, "")) != EOF) | 68 while ((ch = getopt(argc, argv, "")) != -1) |
69 switch (ch) { 70 case '?': 71 default: 72 goto usage; 73 } 74 argc -= optind; 75 argv += optind; 76 --- 28 unchanged lines hidden --- | 69 switch (ch) { 70 case '?': 71 default: 72 goto usage; 73 } 74 argc -= optind; 75 argv += optind; 76 --- 28 unchanged lines hidden --- |