diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-11-03 18:33:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-11-03 18:33:03 +0000 |
commit | 5c01f901e111d4370993c92136b963cad10c6839 (patch) | |
tree | 0461d4401aa2ab1ce5f1006c1b784846a01f86ad /usr.bin/tip | |
parent | d514bdb18810f5f2a62bf0ebd41b56ece1d4efab (diff) |
Translate '=' in phone number strings into ',' (to generate delays)
like other dialers do. From NetBSD (cgd).
Diffstat (limited to 'usr.bin/tip')
-rw-r--r-- | usr.bin/tip/aculib/hayes.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tip/aculib/hayes.c b/usr.bin/tip/aculib/hayes.c index 77a11e680f5..ad3329bd6cb 100644 --- a/usr.bin/tip/aculib/hayes.c +++ b/usr.bin/tip/aculib/hayes.c @@ -1,5 +1,5 @@ -/* $OpenBSD: hayes.c,v 1.3 1996/06/26 05:40:53 deraadt Exp $ */ -/* $NetBSD: hayes.c,v 1.4 1995/10/29 00:49:54 pk Exp $ */ +/* $OpenBSD: hayes.c,v 1.4 1996/11/03 18:33:02 millert Exp $ */ +/* $NetBSD: hayes.c,v 1.5 1996/11/01 23:56:33 cgd Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)hayes.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: hayes.c,v 1.3 1996/06/26 05:40:53 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: hayes.c,v 1.4 1996/11/03 18:33:02 millert Exp $"; #endif /* not lint */ /* @@ -108,6 +108,9 @@ hay_dialer(num, acu) gobble("\r"); gobble("\r"); write(FD, "ATTD", 4); /* send dial command */ + for (cp = num; *cp; cp++) + if (*cp == '=') + *cp = ','; write(FD, num, strlen(num)); state = DIALING; write(FD, "\r", 1); |