update changelog
[alioth/cvs.git] / src / update.c
index 4fb3440..a29716b 100644 (file)
@@ -58,7 +58,7 @@ static void checkout_to_buffer (void *, const char *, size_t);
 static int patch_file (struct file_info *finfo,
                        Vers_TS *vers_ts, 
                        int *docheckout, struct stat *file_info,
-                       unsigned char *checksum);
+                       md5_uint32 *checksum);
 static void patch_file_write (void *, const char *, size_t);
 #endif
 static int merge_file (struct file_info *finfo, Vers_TS *vers);
@@ -723,7 +723,7 @@ update_fileproc (void *callerdat, struct file_info *finfo)
                {
                    int docheckout;
                    struct stat file_info;
-                   unsigned char checksum[16];
+                   md5_uint32 checksum[4];
 
                    retval = patch_file (finfo,
                                         vers, &docheckout,
@@ -735,7 +735,8 @@ update_fileproc (void *callerdat, struct file_info *finfo)
                                            (rcs_diff_patches
                                             ? SERVER_RCS_DIFF
                                             : SERVER_PATCHED),
-                                           file_info.st_mode, checksum,
+                                           file_info.st_mode,
+                                           (void *)checksum,
                                            NULL);
                        break;
                    }
@@ -1197,7 +1198,7 @@ checkout_file (struct file_info *finfo, Vers_TS *vers_ts, int adding,
 {
     char *backup;
     int set_time, retval = 0;
-    int status;
+    int status = 0;
     int file_is_dead;
     struct buffer *revbuf;
 
@@ -1511,7 +1512,7 @@ struct patch_file_data
  */
 static int
 patch_file (struct file_info *finfo, Vers_TS *vers_ts, int *docheckout,
-           struct stat *file_info, unsigned char *checksum)
+           struct stat *file_info, md5_uint32 *checksum)
 {
     char *backup;
     char *file1;