Remove main() function

This commit is contained in:
Nils O. Selåsdal
2015-02-10 20:45:40 +01:00
parent 7e1114c09b
commit aeee4de26a
-8
View File
@@ -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);
}