~ubuntu-branches/ubuntu/intrepid/splitvt/intrepid

« back to all changes in this revision

Viewing changes to parserc.c

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2007-04-12 17:38:41 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20070412173841-rzdxwn4vxwit6x77
Tags: upstream-1.6.6
ImportĀ upstreamĀ versionĀ 1.6.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include <sys/types.h>
5
5
#include <sys/stat.h>
6
 
#include <string.h>
7
6
#include <errno.h>
8
7
#include <pwd.h>
9
8
#include <fcntl.h>
10
9
#include <stdio.h>
 
10
#include <stdlib.h>
 
11
#include <string.h>
11
12
#include <ctype.h>
12
13
#include "splitvt.h"
13
14
 
97
98
                        dologin=0;
98
99
                else
99
100
                        warn("Usage: set login [on|off]\n");
 
101
        } else if ( strcmp(args[1], "bottom") == 0 ) {
 
102
                if ( ! args[2] )
 
103
                        warn("Usage: set bottom [on|off]\n");
 
104
                else if ( strcmp(args[2], "on") == 0 )
 
105
                        stbottom=1;
 
106
                else if ( strcmp(args[2], "off") == 0)
 
107
                        stbottom=0;
 
108
                else
 
109
                        warn("Usage set bottom [on|off]\n");
100
110
        } else
101
111
                warn("Invalid parameter to 'set'");
102
112
}