diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-30 14:17:44 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-30 14:17:44 -0800 |
commit | 42a5b22fc0201fe98ad8a093c3ab91122ab3a72b (patch) | |
tree | e9e37d432417ac382a36b9e6f26db38e59ca0585 /src/filelock.c | |
parent | 3de84ad9c45382c181e3383d433442f4e19ba722 (diff) | |
download | emacs-42a5b22fc0201fe98ad8a093c3ab91122ab3a72b.tar.gz |
Use SSDATA when the context wants char *.
* alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
* dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
* fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
* lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
* xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
Use SSDATA (not SDATA) when the context of the expression wants
char * (not unsigned char *).
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filelock.c b/src/filelock.c index c23a9fef765..8fa871f56ef 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -214,9 +214,9 @@ get_boot_time (void) if (! NILP (filename)) { - get_boot_time_1 (SDATA (filename), 1); + get_boot_time_1 (SSDATA (filename), 1); if (delete_flag) - unlink (SDATA (filename)); + unlink (SSDATA (filename)); } } @@ -315,7 +315,7 @@ fill_in_lock_file_name (register char *lockfile, register Lisp_Object fn) struct stat st; int count = 0; - strcpy (lockfile, SDATA (fn)); + strcpy (lockfile, SSDATA (fn)); /* Shift the nondirectory part of the file name (including the null) right two characters. Here is one of the places where we'd have to @@ -475,7 +475,7 @@ current_lock_owner (lock_info_type *owner, char *lfname) /* On current host? */ if (STRINGP (Fsystem_name ()) - && strcmp (owner->host, SDATA (Fsystem_name ())) == 0) + && strcmp (owner->host, SSDATA (Fsystem_name ())) == 0) { if (owner->pid == getpid ()) ret = 2; /* We own it. */ |