Update of /cvsroot/tmux/tmux/compat
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18917/compat
Modified Files:
forkpty-aix.c forkpty-sunos.c strsep.c unvis.c vis.c
Log Message:
Trim spaces.
Index: forkpty-aix.c
===================================================================
RCS file: /cvsroot/tmux/tmux/compat/forkpty-aix.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- forkpty-aix.c 20 Sep 2009 18:31:16 -0000 1.4
+++ forkpty-aix.c 10 Jan 2011 22:45:09 -0000 1.5
@@ -52,10 +52,10 @@
ioctl(fd, TIOCNOTTY, NULL);
close(fd);
}
-
+
if (setsid() < 0)
fatal("setsid");
-
+
fd = open(_PATH_TTY, O_RDWR|O_NOCTTY);
if (fd >= 0)
fatalx("open succeeded (failed to disconnect)");
Index: unvis.c
===================================================================
RCS file: /cvsroot/tmux/tmux/compat/unvis.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- unvis.c 9 Aug 2009 15:39:41 -0000 1.1
+++ unvis.c 10 Jan 2011 22:45:10 -0000 1.2
@@ -57,7 +57,7 @@
if (*astate == S_OCTAL2 || *astate == S_OCTAL3) {
*astate = S_GROUND;
return (UNVIS_VALID);
- }
+ }
return (*astate == S_GROUND ? UNVIS_NOCHAR : UNVIS_SYNBAD);
}
@@ -68,7 +68,7 @@
if (c == '\\') {
*astate = S_START;
return (0);
- }
+ }
*cp = c;
return (UNVIS_VALID);
@@ -141,7 +141,7 @@
}
*astate = S_GROUND;
return (UNVIS_SYNBAD);
-
+
case S_META:
if (c == '-')
*astate = S_META1;
@@ -152,12 +152,12 @@
return (UNVIS_SYNBAD);
}
return (0);
-
+
case S_META1:
*astate = S_GROUND;
*cp |= c;
return (UNVIS_VALID);
-
+
case S_CTRL:
if (c == '?')
*cp |= 0177;
@@ -168,15 +168,15 @@
case S_OCTAL2: /* second possible octal digit */
if (isoctal(c)) {
- /*
- * yes - and maybe a third
+ /*
+ * yes - and maybe a third
*/
*cp = (*cp << 3) + (c - '0');
- *astate = S_OCTAL3;
+ *astate = S_OCTAL3;
return (0);
- }
- /*
- * no - done with current sequence, push back passed char
+ }
+ /*
+ * no - done with current sequence, push back passed char
*/
*astate = S_GROUND;
return (UNVIS_VALIDPUSH);
@@ -191,10 +191,10 @@
* we were done, push back passed char
*/
return (UNVIS_VALIDPUSH);
-
- default:
- /*
- * decoder in unknown state - (probably uninitialized)
+
+ default:
+ /*
+ * decoder in unknown state - (probably uninitialized)
*/
*astate = S_GROUND;
return (UNVIS_SYNBAD);
@@ -202,7 +202,7 @@
}
/*
- * strunvis - decode src into dst
+ * strunvis - decode src into dst
*
* Number of chars decoded into dst is returned, -1 on error.
* Dst is null terminated.
Index: forkpty-sunos.c
===================================================================
RCS file: /cvsroot/tmux/tmux/compat/forkpty-sunos.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- forkpty-sunos.c 15 Oct 2009 07:11:25 -0000 1.9
+++ forkpty-sunos.c 10 Jan 2011 22:45:10 -0000 1.10
@@ -73,7 +73,7 @@
dup2(slave, 1);
dup2(slave, 2);
if (slave > 2)
- close(slave);
+ close(slave);
return (0);
}
Index: strsep.c
===================================================================
RCS file: /cvsroot/tmux/tmux/compat/strsep.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- strsep.c 16 Aug 2009 16:15:53 -0000 1.1
+++ strsep.c 10 Jan 2011 22:45:10 -0000 1.2
@@ -35,7 +35,7 @@
/*
* Get next token from string *stringp, where tokens are possibly-empty
- * strings separated by characters from delim.
+ * strings separated by characters from delim.
*
* Writes NULs into the string at *stringp to end tokens.
* delim need not remain constant from call to call.
Index: vis.c
===================================================================
RCS file: /cvsroot/tmux/tmux/compat/vis.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- vis.c 25 Jun 2009 20:27:32 -0000 1.3
+++ vis.c 10 Jan 2011 22:45:10 -0000 1.4
@@ -136,10 +136,10 @@
/*
* strvis, strnvis, strvisx - visually encode characters from src into dst
- *
+ *
* Dst must be 4 times the size of src to account for possible
* expansion. The length of dst, not including the trailing NULL,
- * is returned.
+ * is returned.
*
* Strnvis will write no more than siz-1 bytes (and will NULL terminate).
* The number of bytes needed to fully encode the string is returned.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs