You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2005/01/13 13:08:13 UTC
svn commit: r125073 - /apr/apr/trunk/locks/unix/proc_mutex.c
Author: jorton
Date: Thu Jan 13 04:08:10 2005
New Revision: 125073
URL: http://svn.apache.org/viewcvs?view=rev&rev=125073
Log:
* locks/unix/proc_mutex.c (proc_mutex_posix_create): Drop unnecessary
casts.
Modified:
apr/apr/trunk/locks/unix/proc_mutex.c
Modified: apr/apr/trunk/locks/unix/proc_mutex.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/locks/unix/proc_mutex.c?view=diff&rev=125073&p1=apr/apr/trunk/locks/unix/proc_mutex.c&r1=125072&p2=apr/apr/trunk/locks/unix/proc_mutex.c&r2=125073
==============================================================================
--- apr/apr/trunk/locks/unix/proc_mutex.c (original)
+++ apr/apr/trunk/locks/unix/proc_mutex.c Thu Jan 13 04:08:10 2005
@@ -95,18 +95,18 @@
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,