morse.c (29018) | morse.c (33937) |
---|---|
1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. 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 --- 199 unchanged lines hidden (view full) --- 208int 209main(int argc, char **argv) 210{ 211 extern char *optarg; 212 extern int optind; 213 register int ch; 214 register char *p; 215 | 1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. 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 --- 199 unchanged lines hidden (view full) --- 208int 209main(int argc, char **argv) 210{ 211 extern char *optarg; 212 extern int optind; 213 register int ch; 214 register char *p; 215 |
216 while ((ch = getopt(argc, argv, "spw:f:")) != EOF) | 216 while ((ch = getopt(argc, argv, "spw:f:")) != -1) |
217 switch ((char) ch) { 218 case 'f': 219 freq = atoi(optarg); 220 break; 221 case 'p': 222 pflag = 1; 223 break; 224 case 's': --- 142 unchanged lines hidden --- | 217 switch ((char) ch) { 218 case 'f': 219 freq = atoi(optarg); 220 break; 221 case 'p': 222 pflag = 1; 223 break; 224 case 's': --- 142 unchanged lines hidden --- |