changeset 18707:23039b06955a

(current_lock_owner, lock_file_1): Add casts.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Jul 1997 03:03:10 +0000
parents 4af0aa969bbe
children 965c5ee65d86
files src/filelock.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Thu Jul 10 02:15:40 1997 +0000
+++ b/src/filelock.c	Thu Jul 10 03:03:10 1997 +0000
@@ -133,8 +133,8 @@
      int force;
 {
   register int err;
-  char *user_name = XSTRING (Fuser_login_name (Qnil))->data;
-  char *host_name = XSTRING (Fsystem_name ())->data;
+  char *user_name = (char *) XSTRING (Fuser_login_name (Qnil))->data;
+  char *host_name = (char *) XSTRING (Fsystem_name ())->data;
   char *lock_info_str = alloca (strlen (user_name) + strlen (host_name)
                                 + LOCK_PID_MAX + 5);
 
@@ -195,7 +195,7 @@
      read it to determine return value, so allocate it.  */
   if (!owner)
     {
-      owner = alloca (sizeof (lock_info_type));
+      owner = (lock_info_type *) alloca (sizeof (lock_info_type));
       local_owner = 1;
     }