Paul:

I am looking over the patches that you sent to me. This one puzzles me:

diff -ur LiS-2.16.old/drivers/str/sad.c LiS-2.16.new/drivers/str/sad.c
--- LiS-2.16.old/drivers/str/sad.c      Thu Nov  7 14:41:35 2002
+++ LiS-2.16.new/drivers/str/sad.c      Mon Sep 15 08:04:51 2003
@@ -181,7 +181,11 @@
        int err = 0, ret = 0;

        if (res->cp_rval != 0) {
+#if defined(_ASM_IA64_UNISTD_H)
+               err = -(unsigned long)res->cp_rval;
+#else
                err = -(int)res->cp_rval;
+#endif
                ret = -1;
                goto ioctl_done;
        }

I am wondering why "(int) = -(unsigned long)" works and "(int) = -(int)" does not. Did the compiler whine about the (int) cast reducing the length of the pointer, or something like that?

I may have a few other questions for you as well.

-- Dave

At 06:37 AM 9/15/2003 Monday, Paul Landay wrote:




Here is the complete set of changes for LiS 2.16.13 on RedHat7.2-ia64:

(See attached file: LiS-2.16.13_ia64diff)


_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to