Be even less picky about 'phone numbers' -- anything that begins with
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 4 Apr 1986 08:01:53 +0000 (00:01 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 4 Apr 1986 08:01:53 +0000 (00:01 -0800)
a digit is a phone number.

SCCS-vsn: usr.bin/tip/tip.c 5.4

usr/src/usr.bin/tip/tip.c

index 0407972..a7be4ba 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)tip.c      5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)tip.c      5.4 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -83,9 +83,8 @@ main(argc, argv)
 
        if (system == NOSTR)
                goto notnumber;
 
        if (system == NOSTR)
                goto notnumber;
-       for (p = system; *p; p++)
-               if (isalpha(*p))
-                       goto notnumber;
+       if (isalpha(*system))
+               goto notnumber;
        /*
         * System name is really a phone number...
         * Copy the number then stomp on the original (in case the number
        /*
         * System name is really a phone number...
         * Copy the number then stomp on the original (in case the number