C Syntax error patches

This commit is contained in:
2015-05-26 10:38:56 +02:00
parent 30ddb32dfe
commit 6248160eeb
6 changed files with 679 additions and 16 deletions

View File

@ -51,7 +51,6 @@ static char *build_directory_name(const char *name) {
}
OBIDMS_p obi_create_dms(const char *name) {
OBIDMS_p dms=NULL;
char *dirdbname;
// Build and check the directory name
@ -61,7 +60,7 @@ OBIDMS_p obi_create_dms(const char *name) {
// Try to create the directory
if (mkdir(dirdbname,) < 0)
if (mkdir(dirdbname,0x777) < 0)
{
if (errno==EEXIST)
obi_set_errno(OBIDMS_EXIST_ERROR);
@ -111,7 +110,7 @@ OBIDMS_p obi_open_dms(const char *name) {
}
// Allocate the data structure
dms = <OBIDMS_p> malloc(sizeof(OBIDMS_t));
dms = (OBIDMS_p) malloc(sizeof(OBIDMS_t));
if (dms==NULL)
{