cvs-cvs
[Top][All Lists]
Advanced

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

[Cvs-cvs] Changes to ccvs/src/rcs.c


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/src/rcs.c
Date: Wed, 07 Sep 2005 22:49:04 -0400

Index: ccvs/src/rcs.c
diff -u ccvs/src/rcs.c:1.352 ccvs/src/rcs.c:1.353
--- ccvs/src/rcs.c:1.352        Wed Sep  7 22:56:23 2005
+++ ccvs/src/rcs.c      Thu Sep  8 02:49:02 2005
@@ -277,26 +277,26 @@
        in the cache.  */
     rcsbuf_cache_close ();
 
-    if ((rcsfile = locate_rcs (repos, file, &inattic)) == NULL)
+    if (!(rcsfile = locate_rcs (repos, file, &inattic)))
     {
        /* Handle the error cases */
     }
-    else if ((fp = CVS_FOPEN (rcsfile, FOPEN_BINARY_READ)) != NULL) 
+    else if ((fp = CVS_FOPEN (rcsfile, FOPEN_BINARY_READ))) 
     {
-        rcs = RCS_parsercsfile_i(fp, rcsfile);
-       if (rcs != NULL)
+       rcs = RCS_parsercsfile_i (fp, rcsfile);
+       if (rcs)
        {       
            rcs->flags |= VALID;
-           if ( inattic )
+           if (inattic)
                rcs->flags |= INATTIC;
        }
 
-       free ( rcsfile );
+       free (rcsfile);
        retval = rcs;
     }
-    else if (! existence_error (errno))
+    else if (!existence_error (errno))
     {
-       error (0, errno, "cannot open %s", rcsfile);
+       error (0, errno, "cannot open `%s'", rcsfile);
        free (rcsfile);
     }
 




reply via email to

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