diff src/filelock.c @ 1726:a8d8f419b459

[xemacs-hg @ 2003-09-30 15:26:34 by james] Add type information to xfree to avoid alias creation.
author james
date Tue, 30 Sep 2003 15:27:01 +0000
parents 804517e16990
children ecf1ebac70d8
line wrap: on
line diff
--- a/src/filelock.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/filelock.c	Tue Sep 30 15:27:01 2003 +0000
@@ -88,7 +88,10 @@
 #define LOCK_PID_MAX (4 * sizeof (pid_t))
 
 /* Free the two dynamically-allocated pieces in PTR.  */
-#define FREE_LOCK_INFO(i) do { xfree ((i).user); xfree ((i).host); } while (0)
+#define FREE_LOCK_INFO(i) do {			\
+    xfree ((i).user, Ibyte *);			\
+    xfree ((i).host, Ibyte *);			\
+  } while (0)
 
 /* Write the name of the lock file for FN into LFNAME.  Length will be
    that of FN plus two more for the leading `.#' plus one for the null.  */
@@ -180,7 +183,7 @@
   /* If nonexistent lock file, all is well; otherwise, got strange error. */
   if (len == -1)
     {
-      xfree (lfinfo);
+      xfree (lfinfo, Ibyte *);
       return errno == ENOENT ? 0 : -1;
     }
 
@@ -200,7 +203,7 @@
   at = qxestrchr (lfinfo, '@');
   dot = qxestrrchr (lfinfo, '.');
   if (!at || !dot) {
-    xfree (lfinfo);
+    xfree (lfinfo, Ibyte *);
     return -1;
   }
   len = at - lfinfo;
@@ -218,7 +221,7 @@
   owner->host[len] = 0;
 
   /* We're done looking at the link info.  */
-  xfree (lfinfo);
+  xfree (lfinfo, Ibyte *);
 
   /* On current host?  */
   if (STRINGP (Fsystem_name ())