summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcvt/cursor/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pcvt/cursor/cursor.c')
-rw-r--r--usr.sbin/pcvt/cursor/cursor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/pcvt/cursor/cursor.c b/usr.sbin/pcvt/cursor/cursor.c
index 58fb5c7..94ce1d7 100644
--- a/usr.sbin/pcvt/cursor/cursor.c
+++ b/usr.sbin/pcvt/cursor/cursor.c
@@ -43,7 +43,7 @@ static char *id =
* -hm adding option -d <device>
*
*---------------------------------------------------------------------------*/
-
+
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
@@ -67,7 +67,7 @@ char *argv[];
int end = -1;
int dflag = -1;
char *device;
-
+
while( (c = getopt(argc, argv, "d:n:s:e:")) != EOF)
{
switch(c)
@@ -76,15 +76,15 @@ char *argv[];
device = optarg;
dflag = 1;
break;
-
+
case 'n':
screen = atoi(optarg);
break;
-
+
case 's':
start = atoi(optarg);
break;
-
+
case 'e':
end = atoi(optarg);
break;
@@ -96,7 +96,7 @@ char *argv[];
}
}
- if(start == -1 || end == -1)
+ if(start == -1 || end == -1)
usage();
if(dflag == -1)
@@ -118,7 +118,7 @@ char *argv[];
if(screen == -1)
{
struct stat stat;
-
+
if((fstat(fd, &stat)) == -1)
{
char buffer[80];
@@ -130,7 +130,7 @@ char *argv[];
screen = minor(stat.st_rdev);
}
-
+
cursorshape.start = start;
cursorshape.end = end;
cursorshape.screen_no = screen;
OpenPOWER on IntegriCloud