forked from bonsai/harakit
mm(1): fix argv use
This commit is contained in:
parent
c5c0e543e4
commit
429d064209
4
src/mm.c
4
src/mm.c
@ -147,9 +147,9 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
k = 0;
|
k = 0;
|
||||||
|
|
||||||
if (argc > 0) { program_name = argv[0]; }
|
if (argc > 0) {
|
||||||
|
program_name = argv[0];
|
||||||
|
|
||||||
if (argc > 1) {
|
|
||||||
while ((c = getopt(argc, argv, "aehi:no:u")) != -1) {
|
while ((c = getopt(argc, argv, "aehi:no:u")) != -1) {
|
||||||
switch (c){
|
switch (c){
|
||||||
case 'a': /* "rb+" -> "ab" */
|
case 'a': /* "rb+" -> "ab" */
|
||||||
|
Loading…
Reference in New Issue
Block a user