diff options
Diffstat (limited to 'drivers/isdn/hardware/eicon/istream.c')
-rw-r--r-- | drivers/isdn/hardware/eicon/istream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hardware/eicon/istream.c b/drivers/isdn/hardware/eicon/istream.c index 23139668d9b1..18f8798442fa 100644 --- a/drivers/isdn/hardware/eicon/istream.c +++ b/drivers/isdn/hardware/eicon/istream.c | |||
@@ -92,7 +92,7 @@ int diva_istream_write (void* context, | |||
92 | return (-1); /* was not able to write */ | 92 | return (-1); /* was not able to write */ |
93 | break; /* only part of message was written */ | 93 | break; /* only part of message was written */ |
94 | } | 94 | } |
95 | to_write = MIN(length, DIVA_DFIFO_DATA_SZ); | 95 | to_write = min(length, DIVA_DFIFO_DATA_SZ); |
96 | if (to_write) { | 96 | if (to_write) { |
97 | a->ram_out_buffer (a, | 97 | a->ram_out_buffer (a, |
98 | #ifdef PLATFORM_GT_32BIT | 98 | #ifdef PLATFORM_GT_32BIT |
@@ -176,7 +176,7 @@ int diva_istream_read (void* context, | |||
176 | return (-1); /* was not able to read */ | 176 | return (-1); /* was not able to read */ |
177 | break; | 177 | break; |
178 | } | 178 | } |
179 | to_read = MIN(max_length, tmp[1]); | 179 | to_read = min(max_length, (int)tmp[1]); |
180 | if (to_read) { | 180 | if (to_read) { |
181 | a->ram_in_buffer(a, | 181 | a->ram_in_buffer(a, |
182 | #ifdef PLATFORM_GT_32BIT | 182 | #ifdef PLATFORM_GT_32BIT |