C Syntax error patches
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user