Use QID_NONE rather than 0 for the non-abstract channel descriptor.
authorChris Hanson <org/chris-hanson/cph>
Fri, 25 Apr 2003 19:49:47 +0000 (19:49 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 25 Apr 2003 19:49:47 +0000 (19:49 +0000)
The value 0 could be confused with a real qid.

v7/src/microcode/pros2io.c

index 4637a6f0ee99ea9199d2708255b599c28251bfa1..a584cb947aaaa66df27208d989c37ceed1fe91f2 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: pros2io.c,v 1.12 2003/04/25 05:13:14 cph Exp $
+$Id: pros2io.c,v 1.13 2003/04/25 19:49:47 cph Exp $
 
 Copyright 1994,1995,1997,2000,2003 Massachusetts Institute of Technology
 
@@ -45,7 +45,7 @@ DEFINE_PRIMITIVE ("CHANNEL-DESCRIPTOR", Prim_channel_descriptor, 1, 1, 0)
       (LONG_TO_UNSIGNED_FIXNUM
        ((CHANNEL_ABSTRACT_P (channel))
        ? (OS2_channel_thread_descriptor (channel))
-       : 0));
+       : QID_NONE));
   }
 }