Deleted Added
full compact
swapon.c (18073) swapon.c (24359)
1/*
2 * Copyright (c) 1980, 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

--- 46 unchanged lines hidden (view full) ---

55{
56 extern char *optarg;
57 extern int optind;
58 register struct fstab *fsp;
59 register int stat;
60 int ch, doall;
61
62 doall = 0;
1/*
2 * Copyright (c) 1980, 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

--- 46 unchanged lines hidden (view full) ---

55{
56 extern char *optarg;
57 extern int optind;
58 register struct fstab *fsp;
59 register int stat;
60 int ch, doall;
61
62 doall = 0;
63 while ((ch = getopt(argc, argv, "a")) != EOF)
63 while ((ch = getopt(argc, argv, "a")) != -1)
64 switch((char)ch) {
65 case 'a':
66 doall = 1;
67 break;
68 case '?':
69 default:
70 usage();
71 }

--- 51 unchanged lines hidden ---
64 switch((char)ch) {
65 case 'a':
66 doall = 1;
67 break;
68 case '?':
69 default:
70 usage();
71 }

--- 51 unchanged lines hidden ---