]> andersk Git - splint.git/blobdiff - src/osd.c
*** empty log message ***
[splint.git] / src / osd.c
index 171d8777c364e0017d9c411aa0a74e72d9cf3339..ebe214a9ac2ec7a4e56f42d86530f344e13f5aa3 100644 (file)
--- a/src/osd.c
+++ b/src/osd.c
@@ -338,13 +338,15 @@ osd_fileExists (cstring filespec)
 bool
 osd_executableFileExists (/*@unused@*/ char *filespec)
 {
+  /*@-compdestroy@*/ /* possible memory leaks here? */
 # ifdef UNIX
   struct stat buf;
   if (stat (filespec, &buf) == 0)
     { 
       /* mask by file type */
-      /*@-unrecog@*/ /* S_IFMT is not defined */
-      /*@i32@*/ if ((buf.st_mode & S_IFMT) != S_IFDIR /*@=unrecog@*/) /* not a directory */ /* spurious */
+      /*@-type@*/ /* confusion about __mode_t and mode_t types */
+      if ((buf.st_mode & S_IFMT) != S_IFDIR) /* not a directory */ 
+       /*@=type@*/
        {
          /* as long as it is an executable file */
 # if defined(__IBMC__) && defined(OS2)
@@ -359,13 +361,13 @@ osd_executableFileExists (/*@unused@*/ char *filespec)
                   | (buf.st_mode & S_IXGRP) |
                   (buf.st_mode & S_IXOTH)
 # endif
-                  /*@i4@*/ ) != 0); /* spurious */
+                  ) != 0); /* spurious */
 # endif
        }
     }
 # endif
-  /*@i4@*/ return (FALSE); /* spurious */
-
+  return (FALSE); 
+  /*@=compdestroy@*/
 }
 
 /*
This page took 0.035334 seconds and 4 git commands to generate.