emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 766f636: ; * src/lread.c (safe_to_load_version, Fload): Fix codin


From: Eli Zaretskii
Subject: master 766f636: ; * src/lread.c (safe_to_load_version, Fload): Fix coding style.
Date: Fri, 12 Nov 2021 02:48:34 -0500 (EST)

branch: master
commit 766f636a72d890c0304cbbf49b7e1391aba0f406
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * src/lread.c (safe_to_load_version, Fload): Fix coding style.
---
 src/lread.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/lread.c b/src/lread.c
index 39cab19..3052bcb 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1054,7 +1054,7 @@ safe_to_load_version (Lisp_Object file, int fd)
 
   /* If the file is not regular, then we cannot safely seek it.
      Assume that it is not safe to load as a compiled file.  */
-  if (fstat(fd, &st) == 0 && !S_ISREG (st.st_mode))
+  if (fstat (fd, &st) == 0 && !S_ISREG (st.st_mode))
     return 0;
 
   /* Read the first few bytes from the file, and look for a line
@@ -1418,11 +1418,8 @@ Return t if the file exists and loads successfully.  */)
          struct stat s1, s2;
          int result;
 
-         if (version < 0
-       && ! (version = safe_to_load_version (file, fd)))
-           {
-             error ("File `%s' was not compiled in Emacs", SDATA (found));
-           }
+         if (version < 0 && !(version = safe_to_load_version (file, fd)))
+           error ("File `%s' was not compiled in Emacs", SDATA (found));
 
          compiled = 1;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]