]> err.no Git - linux-2.6/blobdiff - drivers/isdn/hardware/eicon/istream.c
[PATCH] mark struct file_operations const 3
[linux-2.6] / drivers / isdn / hardware / eicon / istream.c
index 23139668d9b1d7faa103f8fae3c6385fc3cf67f0..18f8798442fa53ac8a7d91d2684a81e678970642 100644 (file)
@@ -92,7 +92,7 @@ int diva_istream_write (void* context,
     return (-1); /* was not able to write       */
    break;     /* only part of message was written */
   }
-  to_write = MIN(length, DIVA_DFIFO_DATA_SZ);
+  to_write = min(length, DIVA_DFIFO_DATA_SZ);
   if (to_write) {
    a->ram_out_buffer (a,
 #ifdef PLATFORM_GT_32BIT
@@ -176,7 +176,7 @@ int diva_istream_read (void* context,
     return (-1); /* was not able to read */
    break;
   }
-  to_read = MIN(max_length, tmp[1]);
+  to_read = min(max_length, (int)tmp[1]);
   if (to_read) {
    a->ram_in_buffer(a,
 #ifdef PLATFORM_GT_32BIT