]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR ada/71817
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jul 2016 07:41:11 +0000 (07:41 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jul 2016 07:41:11 +0000 (07:41 +0000)
* adaint.c (__gnat_is_read_accessible_file): Add parentheses.
(__gnat_is_write_accessible_file): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238204 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/adaint.c

index f7fa41d5f6590cc7a7690c8063fbcd78d2606e17..21d61873404f1b1ac32e99c1d90ddbc1c9a3504d 100644 (file)
@@ -1,3 +1,9 @@
+2016-07-11  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/71817
+       * adaint.c (__gnat_is_read_accessible_file): Add parentheses.
+       (__gnat_is_write_accessible_file): Likewise.
+
 2016-07-07  Ed Schonberg  <schonberg@adacore.com>
 
        * exp_ch6.adb (Expand_Internal_Init_Call): Subsidiary procedure
index 67bdad3e8c52c58f7b6c1d74fd1091db5e6a5ecc..e011fef46bd5f19de6a85633822990651d0a1f0e 100644 (file)
@@ -1924,7 +1924,7 @@ __gnat_is_read_accessible_file (char *name)
 #elif defined (__vxworks)
    int fd;
 
-   if (fd = open (name, O_RDONLY, 0) < 0)
+   if ((fd = open (name, O_RDONLY, 0)) < 0)
      return 0;
    close (fd);
    return 1;
@@ -1997,7 +1997,7 @@ __gnat_is_write_accessible_file (char *name)
 #elif defined (__vxworks)
    int fd;
 
-   if (fd = open (name, O_WRONLY, 0) < 0)
+   if ((fd = open (name, O_WRONLY, 0)) < 0)
      return 0;
    close (fd);
    return 1;