diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2005-01-13 12:08:10 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2005-01-13 12:08:10 +0000 |
commit | 3eff83864ebd2830ff0a706b2f692a7bc3cf4caf (patch) | |
tree | 3b9d930bcc095efc6b3fa2b6568d1c7394f3015b | |
parent | f170c2d00c47ca92a417a506c93962d09fd58c2e (diff) | |
download | libapr-3eff83864ebd2830ff0a706b2f692a7bc3cf4caf.tar.gz |
* locks/unix/proc_mutex.c (proc_mutex_posix_create): Drop unnecessary
casts.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125073 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | locks/unix/proc_mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c index 2e614b232..e7a70a44c 100644 --- a/locks/unix/proc_mutex.c +++ b/locks/unix/proc_mutex.c @@ -95,18 +95,18 @@ static apr_status_t proc_mutex_posix_create(apr_proc_mutex_t *new_mutex, sec = apr_time_sec(now); usec = apr_time_usec(now); apr_snprintf(semname, sizeof(semname), "/ApR.%lxZ%lx", sec, usec); - psem = sem_open((const char *) semname, O_CREAT, 0644, 1); + psem = sem_open(semname, O_CREAT, 0644, 1); if ((psem == (sem_t *)SEM_FAILED) && (errno == ENAMETOOLONG)) { /* Oh well, good try */ semname[13] = '\0'; - psem = sem_open((const char *) semname, O_CREAT, 0644, 1); + psem = sem_open(semname, O_CREAT, 0644, 1); } if (psem == (sem_t *)SEM_FAILED) { return errno; } /* Ahhh. The joys of Posix sems. Predelete it... */ - sem_unlink((const char *) semname); + sem_unlink(semname); new_mutex->psem_interproc = psem; new_mutex->fname = apr_pstrdup(new_mutex->pool, semname); apr_pool_cleanup_register(new_mutex->pool, (void *)new_mutex, |