Module Name:    src
Committed By:   christos
Date:           Sun Jan  3 15:38:29 UTC 2016

Modified Files:
        src/usr.bin/tip: cu.c

Log Message:
Put back -n


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/tip/cu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/tip/cu.c
diff -u src/usr.bin/tip/cu.c:1.22 src/usr.bin/tip/cu.c:1.23
--- src/usr.bin/tip/cu.c:1.22	Sun Jul 27 00:32:23 2014
+++ src/usr.bin/tip/cu.c	Sun Jan  3 10:38:29 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: cu.c,v 1.22 2014/07/27 04:32:23 dholland Exp $	*/
+/*	$NetBSD: cu.c,v 1.23 2016/01/03 15:38:29 christos Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -36,7 +36,7 @@
 #if 0
 static char sccsid[] = "@(#)cu.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: cu.c,v 1.22 2014/07/27 04:32:23 dholland Exp $");
+__RCSID("$NetBSD: cu.c,v 1.23 2016/01/03 15:38:29 christos Exp $");
 #endif /* not lint */
 
 #include "tip.h"
@@ -54,7 +54,7 @@ cumain(int argc, char *argv[])
 	int parity = 0;		/* 0 is no parity */
 	int flow = -1;		/* -1 is "tandem" ^S/^Q */
 	static int helpme = 0, nostop = 0;
-	char useresc = '~';
+	int useresc = '~';
 	static char sbuf[12];
 	int cmdlineBR;
 	extern char *optarg;
@@ -84,7 +84,7 @@ cumain(int argc, char *argv[])
 	cmdlineBR = 0;
 
 	while((c = getopt_long(argc, argv,
-	    "E:F:P:a:p:c:l:s:hefot0123456789", longopts, NULL)) != -1) {
+	    "E:F:P:a:p:c:l:ns:hefot0123456789", longopts, NULL)) != -1) {
 
 		if (helpme == 1) cuhelp();
 
@@ -136,6 +136,9 @@ cumain(int argc, char *argv[])
 			else
 				(void)asprintf(&DV, "/dev/%s", optarg);
 			break;
+		case 'n':
+			useresc = -1;
+			break;
 		case 's':
 			BR = atoi(optarg);
 			break;
@@ -296,6 +299,7 @@ cuhelp(void)
 	    " -o: Use odd parity\n"
 	    " -P,--parity {even,odd,none}: use even, odd, no parity\n"
 	    " -l,--line line: Use this device (ttyXX)\n"
+	    " -n: Disable escape character processing\n"
 	    " -s,--speed,--baud speed,-#: Use this speed\n"
 	    " -t: Connect via hard-wired connection\n");
 	exit(0);

Reply via email to