Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MMS_LIB_ERROR_FILE -> MMS_LIB_ERROR_IO
  • Loading branch information
monich committed Feb 19, 2014
1 parent 5c62d7d commit 5e7ba4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mms-lib/include/mms_lib_util.h
Expand Up @@ -23,7 +23,7 @@ GQuark mms_lib_error_quark(void);
typedef enum {
MMS_LIB_ERROR_ENCODE,
MMS_LIB_ERROR_DECODE,
MMS_LIB_ERROR_FILE,
MMS_LIB_ERROR_IO,
MMS_LIB_ERROR_EXPIRED
} MMSLibError;

Expand Down
4 changes: 2 additions & 2 deletions mms-lib/src/mms_file_util.c
Expand Up @@ -56,15 +56,15 @@ mms_create_file(
char* fname = g_strconcat(dir, "/", file, NULL);
fd = open(fname, O_CREAT|O_RDWR|O_TRUNC|O_BINARY, MMS_FILE_PERM);
if (fd < 0) {
MMS_ERROR(error, MMS_LIB_ERROR_FILE,
MMS_ERROR(error, MMS_LIB_ERROR_IO,
"Failed to create file %s: %s", fname, strerror(errno));
} else if (path) {
*path = fname;
fname = NULL;
}
g_free(fname);
} else {
MMS_ERROR(error, MMS_LIB_ERROR_FILE,
MMS_ERROR(error, MMS_LIB_ERROR_IO,
"Failed to create directory %s: %s", dir, strerror(errno));
}
return fd;
Expand Down

0 comments on commit 5e7ba4e

Please sign in to comment.