Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
More changes for scan corrections and unit test coverage
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
common
/
src
/
ring_static.c
diff --git
a/src/rmr/common/src/ring_static.c
b/src/rmr/common/src/ring_static.c
index
b54d815
..
da2a9bd
100644
(file)
--- a/
src/rmr/common/src/ring_static.c
+++ b/
src/rmr/common/src/ring_static.c
@@
-85,12
+85,12
@@
static void* uta_mk_ring( int size ) {
}
r->nelements = size; // because we always have an empty element when full
}
r->nelements = size; // because we always have an empty element when full
- if( (r->data = (void **) malloc( sizeof( void*
*
) * (r->nelements + 1) )) == NULL ) {
+ if( (r->data = (void **) malloc( sizeof( void* ) * (r->nelements + 1) )) == NULL ) {
free( r );
return NULL;
}
free( r );
return NULL;
}
- memset( r->data, 0, sizeof( void*
*
) * r->nelements );
+ memset( r->data, 0, sizeof( void* ) * r->nelements );
r->pfd = eventfd( 0, EFD_SEMAPHORE | EFD_NONBLOCK ); // in semaphore mode counter is maintained with each insert/extract
return (void *) r;
}
r->pfd = eventfd( 0, EFD_SEMAPHORE | EFD_NONBLOCK ); // in semaphore mode counter is maintained with each insert/extract
return (void *) r;
}