mirror of
https://github.com/transmission/transmission.git
synced 2026-04-17 23:54:19 +01:00
make tr_mkdir() private.
This commit is contained in:
@@ -519,13 +519,17 @@ tr_mkdtemp( char * template )
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
tr_mkdir( const char * path,
|
||||
int permissions
|
||||
#ifdef WIN32
|
||||
UNUSED
|
||||
#endif
|
||||
)
|
||||
/**
|
||||
* @brief Portability wrapper for mkdir()
|
||||
*
|
||||
* A portability wrapper around mkdir().
|
||||
* On WIN32, the `permissions' argument is unused.
|
||||
*
|
||||
* @return zero on success, or -1 if an error occurred
|
||||
* (in which case errno is set appropriately).
|
||||
*/
|
||||
static int
|
||||
tr_mkdir( const char * path, int permissions UNUSED)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if( path && isalpha( path[0] ) && path[1] == ':' && !path[2] )
|
||||
|
||||
@@ -203,17 +203,6 @@ char* tr_basename( const char * path ) TR_GNUC_MALLOC;
|
||||
/** @brief Portability wrapper for dirname() that uses the system implementation if available */
|
||||
char* tr_dirname( const char * path ) TR_GNUC_MALLOC;
|
||||
|
||||
/**
|
||||
* @brief Portability wrapper for mkdir()
|
||||
*
|
||||
* A portability wrapper around mkdir().
|
||||
* On WIN32, the `permissions' argument is unused.
|
||||
*
|
||||
* @return zero on success, or -1 if an error occurred
|
||||
* (in which case errno is set appropriately).
|
||||
*/
|
||||
int tr_mkdir( const char * path, int permissions ) TR_GNUC_NONNULL(1);
|
||||
|
||||
/**
|
||||
* Like mkdir, but makes parent directories as needed.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user