Remove main() function
This commit is contained in:
@@ -10,7 +10,6 @@ static int uc_mkdir(const char *full_path, mode_t mode)
|
|||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
int rc;
|
int rc;
|
||||||
int created = 0;
|
|
||||||
|
|
||||||
rc = stat(full_path, &st);
|
rc = stat(full_path, &st);
|
||||||
if (rc == -1 && errno == ENOENT) {
|
if (rc == -1 && errno == ENOENT) {
|
||||||
@@ -99,10 +98,3 @@ int uc_mkdir_p(const char *full_path, mode_t mode)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
int rc = uc_mkdir_p("/tmp/a///", 0777);
|
|
||||||
printf("rc = %d\n", rc);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user