fixed typos and other minor things

This commit is contained in:
Celine Mercier
2015-06-10 15:19:02 +02:00
parent 9b6de9c411
commit 5d967f5b7b
9 changed files with 171 additions and 141 deletions

View File

@ -7,6 +7,7 @@
#include <obitypes.h>
size_t obi_sizeof(OBIType_t type) {
size_t size=0;
@ -33,12 +34,12 @@ size_t obi_sizeof(OBIType_t type) {
}
size_t obi_array_sizeof(OBIType_t type,size_t nbelement) {
size_t obi_array_sizeof(OBIType_t type, size_t nbelements) {
size_t size;
size_t rsize;
size_t psize;
size = obi_sizeof(type) * nbelement;
size = obi_sizeof(type) * nbelements;
psize= getpagesize();
rsize= size % psize;
@ -47,7 +48,6 @@ size_t obi_array_sizeof(OBIType_t type,size_t nbelement) {
if (rsize)
size = (size / psize) * psize + psize;
return size;
}