[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-cvs] ccvs/src ChangeLog edit.c
From: |
Derek Robert Price |
Subject: |
[Cvs-cvs] ccvs/src ChangeLog edit.c |
Date: |
Fri, 19 Sep 2008 17:11:28 +0000 |
CVSROOT: /cvsroot/cvs
Module name: ccvs
Changes by: Derek Robert Price <dprice> 08/09/19 17:11:28
Modified files:
src : ChangeLog edit.c
Log message:
* edit.c (ncheck_fileproc): Some cleanup.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ccvs/src/ChangeLog?cvsroot=cvs&r1=1.3603&r2=1.3604
http://cvs.savannah.gnu.org/viewcvs/ccvs/src/edit.c?cvsroot=cvs&r1=1.106&r2=1.107
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/ChangeLog,v
retrieving revision 1.3603
retrieving revision 1.3604
diff -u -b -r1.3603 -r1.3604
--- ChangeLog 19 Sep 2008 16:15:43 -0000 1.3603
+++ ChangeLog 19 Sep 2008 17:11:27 -0000 1.3604
@@ -1,5 +1,7 @@
2008-09-19 Derek R. Price <address@hidden>
+ * edit.c (ncheck_fileproc): Some cleanup.
+
* checkout.c (checkout_proc): Use empty update dir instead of ".".
* client.c (call_in_directory): Handle preservation of update_dir from
server. Clean up and simplify slightly.
Index: edit.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/edit.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -b -r1.106 -r1.107
--- edit.c 16 Sep 2008 21:00:20 -0000 1.106
+++ edit.c 19 Sep 2008 17:11:27 -0000 1.107
@@ -184,7 +184,7 @@
is most sensible. */
fp = CVS_FOPEN (CVSADM_NOTIFY, "r");
- if (fp == NULL)
+ if (!fp)
{
if (!existence_error (errno))
error (0, errno, "cannot open %s", CVSADM_NOTIFY);
@@ -194,33 +194,33 @@
while (getline (&line, &line_len, fp) > 0)
{
notif_type = line[0];
- if (notif_type == '\0')
+ if (!notif_type)
continue;
filename = line + 1;
cp = strchr (filename, '\t');
- if (cp == NULL)
+ if (!cp)
continue;
*cp++ = '\0';
val = cp;
cp = strchr (val, '\t');
- if (cp == NULL)
+ if (!cp)
continue;
*cp++ = '+';
cp = strchr (cp, '\t');
- if (cp == NULL)
+ if (!cp)
continue;
*cp++ = '+';
cp = strchr (cp, '\t');
- if (cp == NULL)
+ if (!cp)
continue;
*cp++ = '\0';
watches = cp;
cp = strchr (cp, '\n');
- if (cp == NULL)
+ if (!cp)
continue;
*cp = '\0';
- notify_do (notif_type, filename, finfo->update_dir, getcaller (), val,
+ notify_do (notif_type, filename, finfo->update_dir, getcaller(), val,
watches, finfo->repository);
}
free (line);
@@ -230,7 +230,7 @@
if (fclose (fp) < 0)
error (0, errno, "cannot close %s", CVSADM_NOTIFY);
- if ( CVS_UNLINK (CVSADM_NOTIFY) < 0)
+ if (CVS_UNLINK (CVSADM_NOTIFY) < 0)
error (0, errno, "cannot remove %s", CVSADM_NOTIFY);
return 0;
- [Cvs-cvs] ccvs/src ChangeLog edit.c,
Derek Robert Price <=