- long vect;
- /* extern FILE *f_log; */
- register char opencode;
- int prio;
- register int ac;
- register char **av;
- struct sgttyb argp;
-
- av = argv;
- ac = argc;
- av++;
- time(&vect);
- srand(vect);
- opencode = 'w';
- prio = PRIO;
- if (gtty(1, &argp) == 0)
- {
- if ((argp.sg_ispeed ) < B1200)
- Etc.fast++;
- }
- while (ac > 1 && av[0][0] == '-')
- {
- switch (av[0][1])
- {
- case 'a': /* append to log file */
- opencode = 'a';
- break;
+ errx(1, "Usage: %s [-fs]", av0);
+}
+
+int main(int, char **);
+
+int
+main(int argc, char **argv)
+{
+ int ch;
+
+ /* Revoke setgid privileges */
+ setgid(getgid());
+
+ /* Default to fast mode */
+ Etc.fast = 1;
+
+ srandom((long) time(NULL));