[hipl-commit] [trunk] Rev 4185: Remove OpenWrt-specific errno.h workaround.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 8 Apr 2010 18:26:38 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 08/04/2010 at 18:26:38
Revision: 4185
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Remove OpenWrt-specific errno.h workaround.
  
  EKEYREJECTED is available on OpenWrt nowadays.

Modified:
  M  hipd/input.c

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-04-08 11:21:53 +0000
+++ hipd/input.c        2010-04-08 15:25:54 +0000
@@ -2156,12 +2156,7 @@
                                           (is_loopback ? 
&i2_context.hip_enc_out.key :
                                            &i2_context.hip_enc_in.key),
                                           HIP_DIRECTION_DECRYPT),
-#ifdef CONFIG_HIP_OPENWRT
-                     // workaround for non-included errno-base.h in openwrt
-                     -EINVAL,
-#else
                      -EKEYREJECTED,
-#endif
                      "Failed to decrypt the HOST_ID parameter. Dropping the I2 
" \
                      "packet.\n");
         }

Other related posts:

  • » [hipl-commit] [trunk] Rev 4185: Remove OpenWrt-specific errno.h workaround. - Diego Biurrun