ldd.c (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) | ldd.c (62f882d620bdfa783c01626012d69f468ba34e28) |
---|---|
1/* 2 * Copyright (c) 1993 Paul Kranenburg 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60int argc; 61char *argv[]; 62{ 63 char *fmt1 = NULL, *fmt2 = NULL; 64 int rval; 65 int c; 66 int vflag = 0; 67 | 1/* 2 * Copyright (c) 1993 Paul Kranenburg 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60int argc; 61char *argv[]; 62{ 63 char *fmt1 = NULL, *fmt2 = NULL; 64 int rval; 65 int c; 66 int vflag = 0; 67 |
68 while ((c = getopt(argc, argv, "vf:")) != EOF) { | 68 while ((c = getopt(argc, argv, "vf:")) != -1) { |
69 switch (c) { 70 case 'v': 71 vflag++; 72 break; 73 case 'f': 74 if (fmt1) { 75 if (fmt2) 76 errx(1, "Too many formats"); --- 138 unchanged lines hidden --- | 69 switch (c) { 70 case 'v': 71 vflag++; 72 break; 73 case 'f': 74 if (fmt1) { 75 if (fmt2) 76 errx(1, "Too many formats"); --- 138 unchanged lines hidden --- |