morse.c (10352) | morse.c (28979) |
---|---|
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 --- 198 unchanged lines hidden (view full) --- 207int 208main(int argc, char **argv) 209{ 210 extern char *optarg; 211 extern int optind; 212 register int ch; 213 register char *p; 214 | 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 --- 198 unchanged lines hidden (view full) --- 207int 208main(int argc, char **argv) 209{ 210 extern char *optarg; 211 extern int optind; 212 register int ch; 213 register char *p; 214 |
215 /* revoke */ 216 setegid(getgid()); 217 setgid(getgid()); 218 |
|
215 while ((ch = getopt(argc, argv, "spw:f:")) != EOF) 216 switch ((char) ch) { 217 case 'f': 218 freq = atoi(optarg); 219 break; 220 case 'p': 221 pflag = 1; 222 break; --- 144 unchanged lines hidden --- | 219 while ((ch = getopt(argc, argv, "spw:f:")) != EOF) 220 switch ((char) ch) { 221 case 'f': 222 freq = atoi(optarg); 223 break; 224 case 'p': 225 pflag = 1; 226 break; --- 144 unchanged lines hidden --- |