]> Zhao Yanbai Git Server - minix.git/commitdiff
fix the somehow newly introduced warnings
authorDavid van Moolenbroek <david@minix3.org>
Sun, 14 Feb 2010 18:39:47 +0000 (18:39 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Sun, 14 Feb 2010 18:39:47 +0000 (18:39 +0000)
drivers/filter/md5.c
drivers/filter/optset.c
kernel/arch/i386/exception.c

index a2a4b2961b72b091d268db84cf3fce3bd59f6dd1..f2962242a8c6c4e3b7253f8b19a991a89978ac63 100644 (file)
@@ -188,7 +188,7 @@ MD5Final (digest, ctx)
  * reflect the addition of 16 longwords of new data.  MD5Update blocks
  * the data and converts bytes into longwords for this routine.
  */
-static void
+void
 MD5Transform (buf, inraw)
      uint32 buf[4];
      const unsigned char inraw[64];
index f54a5ea1cbe037a5908633d276cca9c1bd92a4c0..a338a47171c8bbceb34ed11a04f3ae361e1f49bd 100644 (file)
@@ -12,6 +12,7 @@
  *   May 2009 (D.C. van Moolenbroek)
  */
 
+#define _MINIX 1
 #include <stdlib.h>
 #include <string.h>
 #include <minix/config.h>
index 0f54754584750934903b5537cfd0887e9dc90529..0177a2c9014113b9eb485966fbc696ed823407ef 100644 (file)
@@ -147,26 +147,26 @@ PUBLIC void exception_handler(int is_nested, struct exception_frame * frame)
    * them out quickly if the traps are not nested
    */
   if (is_nested) {
-         /*
-          * if a problem occured while copying a message from userspace because
-          * of a wrong pointer supplied by userland, handle it the only way we
-          * can handle it ...
-          */
-         if (((void*)frame->eip >= copy_msg_to_user &&
-                         (void*)frame->eip <= __copy_msg_to_user_end) ||
-                         ((void*)frame->eip >= copy_msg_from_user &&
-                         (void*)frame->eip <= __copy_msg_from_user_end)) {
-                 switch(frame->vector) {
-                 /* these error are expected */
-                 case PAGE_FAULT_VECTOR:
-                 case PROTECTION_VECTOR:
-                         frame->eip = (reg_t) __user_copy_msg_pointer_failure;
-                         return;
-                 default:
-                         minix_panic("Copy involving a user pointer "
-                                         "failed unexpectedly!", NO_NUM);
-                 }
-         }
+       /*
+        * if a problem occured while copying a message from userspace because
+        * of a wrong pointer supplied by userland, handle it the only way we
+        * can handle it ...
+        */
+       if (((void*)frame->eip >= (void*)copy_msg_to_user &&
+                       (void*)frame->eip <= (void*)__copy_msg_to_user_end) ||
+                       ((void*)frame->eip >= (void*)copy_msg_from_user &&
+                       (void*)frame->eip <= (void*)__copy_msg_from_user_end)) {
+               switch(frame->vector) {
+               /* these error are expected */
+               case PAGE_FAULT_VECTOR:
+               case PROTECTION_VECTOR:
+                       frame->eip = (reg_t) __user_copy_msg_pointer_failure;
+                       return;
+               default:
+                       minix_panic("Copy involving a user pointer "
+                                       "failed unexpectedly!", NO_NUM);
+               }
+       }
   }
 
   if(frame->vector == PAGE_FAULT_VECTOR) {