* ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
authorGreg J. Badros <gjb@cs.washington.edu>
Wed, 5 Jan 2000 18:51:17 +0000 (18:51 +0000)
committerGreg J. Badros <gjb@cs.washington.edu>
Wed, 5 Jan 2000 18:51:17 +0000 (18:51 +0000)
SCM_VALIDATE instead of 1 to avoid a check on the argument (since
it's not the actual name of the formal).

libguile/ports.c

index c584b07..36e301a 100644 (file)
@@ -621,7 +621,7 @@ which are not needed in the new process.")
        {
          SCM port = SCM_COERCE_OUTPORT (SCM_CAR (ports_ptr));
          if (i == 0)
-            SCM_VALIDATE_OPPORT(1,port);
+            SCM_VALIDATE_OPPORT(SCM_ARG1,port);
          if (port == thisport)
            found = 1;
          ports_ptr = SCM_CDR (ports_ptr);