summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2005-01-13 12:08:10 +0000
committerJoe Orton <jorton@apache.org>2005-01-13 12:08:10 +0000
commite23e9c5236364218e50f521b1865e5b596a97135 (patch)
tree3b9d930bcc095efc6b3fa2b6568d1c7394f3015b /locks
parentac81ab0690a05b29ed8e4abfd1147b06f6cbda97 (diff)
downloadapr-e23e9c5236364218e50f521b1865e5b596a97135.tar.gz
* locks/unix/proc_mutex.c (proc_mutex_posix_create): Drop unnecessary
casts. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@125073 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/proc_mutex.c6
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,