Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv2316

Modified Files:
        info.c 
Log Message:
fixed compile warnings.



Index: info.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/info.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- info.c      25 Aug 2003 07:53:37 -0000      1.40
+++ info.c      17 Oct 2003 15:57:36 -0000      1.41
@@ -192,7 +192,7 @@
                        return -EIO;
                if (file->f_pos >= (long)buf->size)
                        return 0;
-               size = min(count, buf->size - file->f_pos);
+               size = min(count, (size_t)(buf->size - file->f_pos));
                if (copy_to_user(buffer, buf->buffer + file->f_pos, size))
                        return -EFAULT;
                file->f_pos += size;
@@ -227,7 +227,7 @@
                        return -EINVAL;
                if (file->f_pos >= (long)buf->len)
                        return -ENOMEM;
-               size = min(count, buf->len - file->f_pos);
+               size = min(count, (size_t)(buf->len - file->f_pos));
                if (copy_from_user(buf->buffer + file->f_pos, buffer, size))
                        return -EFAULT;
                if ((long)buf->size < file->f_pos + size)



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to