From e23e9c5236364218e50f521b1865e5b596a97135 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 13 Jan 2005 12:08:10 +0000 Subject: * 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 --- locks/unix/proc_mutex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'locks') 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, -- cgit v1.2.1