Fix devtab assumption with c->type
[akaros.git] / kern / include / ns.h
index fff144d..8b83f34 100644 (file)
@@ -354,7 +354,7 @@ struct chan
        struct chan*    next;                   /* allocation */
        struct chan*    link;
        int64_t offset;                 /* in file */
-       uint16_t        type;
+       int     type;
        uint32_t        dev;
        uint16_t        mode;                   /* read/write */
        uint16_t        flag;