[asterisk-commits] qwell: branch group/ast_storage r79735 - in /team/group/ast_storage: include/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 16 14:24:43 CDT 2007


Author: qwell
Date: Thu Aug 16 14:24:42 2007
New Revision: 79735

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79735
Log:
Use the right type for mode, so the compiler doesn't complain.

Modified:
    team/group/ast_storage/include/asterisk/storage.h
    team/group/ast_storage/main/storage.c
    team/group/ast_storage/res/res_storage_file.c
    team/group/ast_storage/res/res_storage_odbc.c

Modified: team/group/ast_storage/include/asterisk/storage.h
URL: http://svn.digium.com/view/asterisk/team/group/ast_storage/include/asterisk/storage.h?view=diff&rev=79735&r1=79734&r2=79735
==============================================================================
--- team/group/ast_storage/include/asterisk/storage.h (original)
+++ team/group/ast_storage/include/asterisk/storage.h Thu Aug 16 14:24:42 2007
@@ -65,7 +65,7 @@
 	/* We don't need no stinkin' put() function. */
 	int (*put)(struct ast_storage *st, const char *exts);
 #endif
-	int (*open)(struct ast_storage *st, struct ast_storage_fileinst *fi, int mode);
+	int (*open)(struct ast_storage *st, struct ast_storage_fileinst *fi, mode_t mode);
 	int (*close)(struct ast_storage *st, struct ast_storage_fileinst *fi);
 	void *(*read)(struct ast_storage *st, struct ast_storage_fileinst *fi, size_t chunksize);
 	int (*write)(struct ast_storage *st, struct ast_storage_fileinst *fi, void *data, size_t chunksize);
@@ -120,7 +120,7 @@
 int ast_storage_put(struct ast_storage *st, const char *exts);
 #endif
 
-int ast_storage_open(struct ast_storage *st, struct ast_storage_fileinst *fi, int mode);
+int ast_storage_open(struct ast_storage *st, struct ast_storage_fileinst *fi, mode_t mode);
 int ast_storage_close(struct ast_storage *st, struct ast_storage_fileinst *fi);
 void *ast_storage_read(struct ast_storage *st, struct ast_storage_fileinst *fi, size_t chunksize);
 int ast_storage_write(struct ast_storage *st, struct ast_storage_fileinst *fi, void *data, size_t chunksize);

Modified: team/group/ast_storage/main/storage.c
URL: http://svn.digium.com/view/asterisk/team/group/ast_storage/main/storage.c?view=diff&rev=79735&r1=79734&r2=79735
==============================================================================
--- team/group/ast_storage/main/storage.c (original)
+++ team/group/ast_storage/main/storage.c Thu Aug 16 14:24:42 2007
@@ -197,7 +197,7 @@
 }
 #endif
 
-int ast_storage_open(struct ast_storage *st, struct ast_storage_fileinst *fi, int mode)
+int ast_storage_open(struct ast_storage *st, struct ast_storage_fileinst *fi, mode_t mode)
 {
 	return st && st->be->open ? st->be->open(st, fi, mode) : -1;
 }

Modified: team/group/ast_storage/res/res_storage_file.c
URL: http://svn.digium.com/view/asterisk/team/group/ast_storage/res/res_storage_file.c?view=diff&rev=79735&r1=79734&r2=79735
==============================================================================
--- team/group/ast_storage/res/res_storage_file.c (original)
+++ team/group/ast_storage/res/res_storage_file.c Thu Aug 16 14:24:42 2007
@@ -127,7 +127,7 @@
 	return len;
 }
 
-static int se_open_file(struct ast_storage *st, struct ast_storage_fileinst *fi, int mode)
+static int se_open_file(struct ast_storage *st, struct ast_storage_fileinst *fi, mode_t mode)
 {
 	fi->ent->fd = open(fi->ent->name, O_RDWR | O_CREAT, mode);
 	return fi->ent->fd;

Modified: team/group/ast_storage/res/res_storage_odbc.c
URL: http://svn.digium.com/view/asterisk/team/group/ast_storage/res/res_storage_odbc.c?view=diff&rev=79735&r1=79734&r2=79735
==============================================================================
--- team/group/ast_storage/res/res_storage_odbc.c (original)
+++ team/group/ast_storage/res/res_storage_odbc.c Thu Aug 16 14:24:42 2007
@@ -629,7 +629,7 @@
 	return len;
 }
 
-static int se_open_odbc(struct ast_storage *st, struct ast_storage_fileinst *fi, int mode)
+static int se_open_odbc(struct ast_storage *st, struct ast_storage_fileinst *fi, mode_t mode)
 {
 	fi->ent->fd = -1;
 	return fi->ent->fd;




More information about the asterisk-commits mailing list