Refactor SERIAL macro.
[bertos.git] / bertos / drv / ser.h
index 568725734c26a04338189c6b1d4e1aa3b4222754..a09aa8b52d241c1182997bbdd0eb9f503aee2870 100644 (file)
@@ -162,7 +162,7 @@ typedef struct Serial
 #define KFT_SERIAL MAKE_ID('S', 'E', 'R', 'L')
 
 
-INLINE Serial * SERIAL(KFile *fd)
+INLINE Serial * SERIAL_CAST(KFile *fd)
 {
        ASSERT(fd->_type == KFT_SERIAL);
        return (Serial *)fd;