apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r125073 - /apr/apr/trunk/locks/unix/proc_mutex.c
Date Thu, 13 Jan 2005 12:08:13 GMT
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,

Mime
View raw message