summaryrefslogtreecommitdiffstats
path: root/usr.bin/ipcs/ipcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ipcs/ipcs.c')
-rw-r--r--usr.bin/ipcs/ipcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c
index b8fd2b9..28db9b0 100644
--- a/usr.bin/ipcs/ipcs.c
+++ b/usr.bin/ipcs/ipcs.c
@@ -24,7 +24,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: ipcs.c,v 1.8 1997/02/22 19:55:18 peter Exp $
*/
#include <stdio.h>
@@ -135,7 +135,7 @@ main(argc, argv)
char *core = NULL, *namelist = NULL;
int i;
- while ((i = getopt(argc, argv, "MmQqSsabC:cN:optT")) != EOF)
+ while ((i = getopt(argc, argv, "MmQqSsabC:cN:optT")) != -1)
switch (i) {
case 'M':
display = SHMTOTAL;
OpenPOWER on IntegriCloud