aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1997-11-21 14:56:30 +0000
committerAndreas Schwab1997-11-21 14:56:30 +0000
commitb27a1703072a3cc4233d6a4d567e8a1d561a7266 (patch)
treeb93c684891170c059f7a3218b91a4e899db69595 /src
parent1d159538f41bc306aef1ade9470abbd03ab16b9a (diff)
downloademacs-b27a1703072a3cc4233d6a4d567e8a1d561a7266.tar.gz
emacs-b27a1703072a3cc4233d6a4d567e8a1d561a7266.zip
(close_file_unwind): Fix return type and return nil.
(restore_point_unwind): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index dbeaf64435a..dfbfbb76c42 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -248,19 +248,23 @@ report_file_error (string, data)
248 Fcons (build_string (string), Fcons (errstring, data))); 248 Fcons (build_string (string), Fcons (errstring, data)));
249} 249}
250 250
251Lisp_Object
251close_file_unwind (fd) 252close_file_unwind (fd)
252 Lisp_Object fd; 253 Lisp_Object fd;
253{ 254{
254 close (XFASTINT (fd)); 255 close (XFASTINT (fd));
256 return Qnil;
255} 257}
256 258
257/* Restore point, having saved it as a marker. */ 259/* Restore point, having saved it as a marker. */
258 260
261Lisp_Object
259restore_point_unwind (location) 262restore_point_unwind (location)
260 Lisp_Object location; 263 Lisp_Object location;
261{ 264{
262 SET_PT (marker_position (location)); 265 SET_PT (marker_position (location));
263 Fset_marker (location, Qnil, Qnil); 266 Fset_marker (location, Qnil, Qnil);
267 return Qnil;
264} 268}
265 269
266Lisp_Object Qexpand_file_name; 270Lisp_Object Qexpand_file_name;