Index: chromeos/drivers/ath6kl/include/dl_list.h |
diff --git a/chromeos/drivers/ath6kl/include/dl_list.h b/chromeos/drivers/ath6kl/include/dl_list.h |
index f07b41d7638abf3429ff9555b7d9523d249ad1cc..110e1d8b047dcf6e6fbaac064adb6f52477b5e7c 100644 |
--- a/chromeos/drivers/ath6kl/include/dl_list.h |
+++ b/chromeos/drivers/ath6kl/include/dl_list.h |
@@ -1,15 +1,19 @@ |
//------------------------------------------------------------------------------ |
// <copyright file="dl_list.h" company="Atheros"> |
-// Copyright (c) 2004-2008 Atheros Corporation. All rights reserved. |
+// Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
// |
-// This program is free software; you can redistribute it and/or modify |
-// it under the terms of the GNU General Public License version 2 as |
-// published by the Free Software Foundation; |
// |
-// Software distributed under the License is distributed on an "AS |
-// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
-// implied. See the License for the specific language governing |
-// rights and limitations under the License. |
+// Permission to use, copy, modify, and/or distribute this software for any |
+// purpose with or without fee is hereby granted, provided that the above |
+// copyright notice and this permission notice appear in all copies. |
+// |
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
// |
// |
//------------------------------------------------------------------------------ |
@@ -24,8 +28,8 @@ |
#include "a_osapi.h" |
#define A_CONTAINING_STRUCT(address, struct_type, field_name)\ |
- ((struct_type *)((A_UINT32)(address) - (A_UINT32)(&((struct_type *)0)->field_name))) |
- |
+ ((struct_type *)((unsigned long)(address) - (unsigned long)(&((struct_type *)0)->field_name))) |
+ |
/* list functions */ |
/* pointers for the list */ |
typedef struct _DL_LIST { |