[openib-general] [PATCH] opensm: remove cl_mem* stuff from diags [was: [PATCH] OpenSM: Use memory routines directly and eliminate cl_mem* routines]
Sasha Khapyorsky
sashak at voltaire.com
Wed May 17 15:53:27 PDT 2006
On 01:02 Thu 18 May , Sasha Khapyorsky wrote:
> On 12:14 Wed 17 May , Hal Rosenstock wrote:
> > OpenSM: Use memory routines directly and eliminate cl_mem* routines
> > as these routines are part of ISO C
> >
> > Signed-off-by: Hal Rosenstock <halr at voltaire.com>
>
> Following Hal's cleanup
And even more:
This cleans cl_mem*() wrappers from diags sources
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
diags/src/saquery.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
d1950d51d8a6ada9b69ed194cd8cc4b2e9aa7902
diff --git a/diags/src/saquery.c b/diags/src/saquery.c
index 5526bff..7c07253 100644
--- a/diags/src/saquery.c
+++ b/diags/src/saquery.c
@@ -42,6 +42,7 @@ #include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <assert.h>
+#include <string.h>
#define _GNU_SOURCE
#include <getopt.h>
@@ -203,8 +204,8 @@ get_all_records(osm_bind_handle_t bind_h
osmv_query_req_t req;
osmv_user_query_t user;
- cl_memclr( &req, sizeof( req ) );
- cl_memclr( &user, sizeof( user ) );
+ memset( &req, 0, sizeof( req ) );
+ memset( &user, 0, sizeof( user ) );
user.attr_id = query_id;
user.attr_offset = attr_offset;
--
1.3.2
More information about the general
mailing list