fix CTRL macro; ANSI C compatible
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 23 Dec 1987 05:47:12 +0000 (21:47 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 23 Dec 1987 05:47:12 +0000 (21:47 -0800)
SCCS-vsn: usr.bin/ftp/main.c 5.7
SCCS-vsn: usr.bin/ftp/domacro.c 1.3

usr/src/usr.bin/ftp/domacro.c
usr/src/usr.bin/ftp/main.c

index e19c5b3..9ca3e51 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)domacro.c  1.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)domacro.c  1.3 (Berkeley) %G%";
 #endif not lint
 
 #include "ftp_var.h"
 #endif not lint
 
 #include "ftp_var.h"
@@ -117,7 +117,7 @@ TOP:
                        }
                        (*c->c_handler)(margc, margv);
                        if (bell && c->c_bell) {
                        }
                        (*c->c_handler)(margc, margv);
                        if (bell && c->c_bell) {
-                               (void) putchar(CTRL(g));
+                               (void) putchar(CTRL('g'));
                        }
                        (void) strcpy(line, line2);
                        makeargv();
                        }
                        (void) strcpy(line, line2);
                        makeargv();
index e2ddb29..42874b5 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     5.7 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -234,7 +234,7 @@ cmdscanner(top)
                }
                (*c->c_handler)(margc, margv);
                if (bell && c->c_bell)
                }
                (*c->c_handler)(margc, margv);
                if (bell && c->c_bell)
-                       (void) putchar(CTRL(g));
+                       (void) putchar(CTRL('g'));
                if (c->c_handler != help)
                        break;
        }
                if (c->c_handler != help)
                        break;
        }