diff options
Diffstat (limited to 'sys-cluster/vzctl/files/patches/015_all_fix-cast-pointers.patch')
-rw-r--r-- | sys-cluster/vzctl/files/patches/015_all_fix-cast-pointers.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sys-cluster/vzctl/files/patches/015_all_fix-cast-pointers.patch b/sys-cluster/vzctl/files/patches/015_all_fix-cast-pointers.patch deleted file mode 100644 index 86f6dd8..0000000 --- a/sys-cluster/vzctl/files/patches/015_all_fix-cast-pointers.patch +++ /dev/null @@ -1,34 +0,0 @@ -From: Dmitry V. Levin <ldv@altlinux.org> -Date: Fri, 25 Aug 2006 08:03:34 +0000 (+0400) -Subject: vzlist: Fix cast from pointer to integer of different size warnings -X-Git-Url: http://git.openvz.org/?p=vzctl;a=commitdiff;h=3a772bf0e3145a1c255d823bca4f4cea6e035f7f - -vzlist: Fix cast from pointer to integer of different size warnings -id_search_fn(): Take veid by reference like in veid_search_fn(). -find_ve(): Pass veid by reference like in check_veid_restr(). - -Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> ---- - -Index: vzctl-3.0.11/src/vzlist.c -=================================================================== ---- vzctl-3.0.11.orig/src/vzlist.c -+++ vzctl-3.0.11/src/vzlist.c -@@ -607,7 +607,7 @@ void usage() - - int id_search_fn(const void* val1, const void* val2) - { -- return ((int)val1 - ((struct Cveinfo*)val2)->veid); -+ return (*(int *)val1 - ((struct Cveinfo*)val2)->veid); - } - - int veid_search_fn(const void* val1, const void* val2) -@@ -708,7 +708,7 @@ void add_elem(struct Cveinfo *ve) - - inline struct Cveinfo *find_ve(int veid) - { -- return (struct Cveinfo *) bsearch((void*)veid, veinfo, n_veinfo, -+ return (struct Cveinfo *) bsearch(&veid, veinfo, n_veinfo, - sizeof(struct Cveinfo), id_search_fn); - } - |