]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Tue, 30 Apr 2019 20:24:25 +0000 (13:24 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 30 Apr 2019 20:24:25 +0000 (13:24 -0700)
open-vm-tools/lib/include/hashTable.h
open-vm-tools/lib/include/vm_basic_defs.h

index 19083c01ec8df412aa4b48e9f95e3e429ddfb0fb..2ee4f3e18bb9c99203217545323f03780329e3b7 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2004-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2017,2019 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -151,7 +151,7 @@ typedef struct PtrHashEntry {
  */
 
 #define PTRHASH_CONTAINER(ptr, type, member) \
-   ((type *)((char *)(ptr) - vmw_offsetof(type, member)))
+   ((type *)((char *)(ptr) - offsetof(type, member)))
 
 typedef int (*PtrHashForEachCallback)(PtrHashEntry *entry,
                                       const void *clientData);
index 30b2b3250f1c95c8f33b710eb72743f1d0dee587..a0cf3619d6d23924206c83d343bd2d6216a8b2dd 100644 (file)
  * Simple macros
  */
 
-
-/* Historical name. Deprecated. TODO: switch to offsetof */
-#ifndef vmw_offsetof
-#define vmw_offsetof(TYPE, MEMBER) offsetof(TYPE, MEMBER)
-#endif
-
 #define VMW_CONTAINER_OF(ptr, type, member) \
-   ((type *)((char *)(ptr) - vmw_offsetof(type, member)))
+   ((type *)((char *)(ptr) - offsetof(type, member)))
 
 #ifndef ARRAYSIZE
 #define ARRAYSIZE(a) (sizeof (a) / sizeof *(a))