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

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.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- info.c      31 Jan 2003 15:19:25 -0000      1.31
+++ info.c      28 Feb 2003 16:37:25 -0000      1.32
@@ -220,7 +220,7 @@
                buf = data->rbuffer;
                if (buf == NULL)
                        return -EIO;
-               if (file->f_pos >= buf->size)
+               if (file->f_pos >= (long)buf->size)
                        return 0;
                size = buf->size < count ? buf->size : count;
                size1 = buf->size - file->f_pos;
@@ -260,7 +260,7 @@
                        return -EIO;
                if (file->f_pos < 0)
                        return -EINVAL;
-               if (file->f_pos >= buf->len)
+               if (file->f_pos >= (long)buf->len)
                        return -ENOMEM;
                size = buf->len < count ? buf->len : count;
                size1 = buf->len - file->f_pos;
@@ -268,7 +268,7 @@
                        size = size1;
                if (copy_from_user(buf->buffer + file->f_pos, buffer, size))
                        return -EFAULT;
-               if (buf->size < file->f_pos + size)
+               if ((long)buf->size < file->f_pos + size)
                        buf->size = file->f_pos + size;
                file->f_pos += size;
                break;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to