From c004da882f1badd2620f1280186d2376eb96a354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 17 Jan 2005 22:23:20 +0000 Subject: [PATCH] Fixed compilation issues that came with changing it to be C++ (hi mmu_man :-)). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10809 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/device_manager/probe.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kernel/core/device_manager/probe.cpp b/src/kernel/core/device_manager/probe.cpp index f3c45de83b..cd727da7ae 100644 --- a/src/kernel/core/device_manager/probe.cpp +++ b/src/kernel/core/device_manager/probe.cpp @@ -74,7 +74,7 @@ notify_probe_by_file(device_node_info *node, const char *consumer_name) return res; // resolve link to actual driver file - resolved_path = malloc(PATH_MAX + 1); + resolved_path = (char *)malloc(PATH_MAX + 1); if (resolved_path == NULL) { res = B_NO_MEMORY; goto err; @@ -144,7 +144,7 @@ compose_driver_names(device_node_info *node, const char *dir, int id; status_t res; - term_array = malloc(num_parts * sizeof(size_t)); + term_array = (size_t *)malloc(num_parts * sizeof(size_t)); if (term_array == NULL) return B_NO_MEMORY; @@ -420,7 +420,7 @@ notify_dynamic_consumer(device_node_info *node, const char *pattern, pattern, *has_normal_driver)); // we need three buffers - allocate them at once for simplicity - buffers = malloc(3 * (PATH_MAX + 1)); + buffers = (char *)malloc(3 * (PATH_MAX + 1)); if (buffers == NULL) return B_NO_MEMORY; @@ -479,7 +479,7 @@ pnp_notify_dynamic_consumers(device_node_info *node) TRACE(("pnp_notify_dynamic_consumers()\n")); - buffer = malloc(PATH_MAX + 1); + buffer = (char *)malloc(PATH_MAX + 1); if (buffer == NULL) return B_NO_MEMORY; @@ -541,7 +541,7 @@ pnp_notify_fixed_consumers(device_node_info *node) TRACE(("pnp_notify_fixed_consumers()\n")); - buffer = malloc(PATH_MAX + 1); + buffer = (char *)malloc(PATH_MAX + 1); if (buffer == NULL) return B_NO_MEMORY;