Fossil

Check-in [0c227fa4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove a c++ism from deltacmd.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0c227fa40679a8798536077cd85c483295138511
User & Date: dan 2007-07-28 08:04:24
Context
2007-07-28
08:15
Fix to the db_open_local() function in the case where the root directory is writable by the current user. check-in: d0d4c5f5 user: dan tags: trunk
08:04
Remove a c++ism from deltacmd.c. check-in: 0c227fa4 user: dan tags: trunk
07:09
When accessing a remote repository, if there is a username/password specified as part of the URI, use these to login. check-in: 3dcaed8d user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to src/deltacmd.c.

28
29
30
31
32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
 
/*
** Create a delta that describes the change from pOriginal to pTarget
** and put that delta in pDelta.  The pDelta blob is assumed to be
** uninitialized.
*/
int blob_delta_create(Blob *pOriginal, Blob *pTarget, Blob *pDelta){
  blob_zero(pDelta);
  const char *zOrig, *zTarg;
  int lenOrig, lenTarg;
  int len;
  char *zRes;

  zOrig = blob_buffer(pOriginal);
  lenOrig = blob_size(pOriginal);
  zTarg = blob_buffer(pTarget);
  lenTarg = blob_size(pTarget);
  blob_resize(pDelta, lenTarg+16);
  zRes = blob_buffer(pDelta);
  len = delta_create(zOrig, lenOrig, zTarg, lenTarg, zRes);







<




>







28
29
30
31
32
33
34

35
36
37
38
39
40
41
42
43
44
45
46
 
/*
** Create a delta that describes the change from pOriginal to pTarget
** and put that delta in pDelta.  The pDelta blob is assumed to be
** uninitialized.
*/
int blob_delta_create(Blob *pOriginal, Blob *pTarget, Blob *pDelta){

  const char *zOrig, *zTarg;
  int lenOrig, lenTarg;
  int len;
  char *zRes;
  blob_zero(pDelta);
  zOrig = blob_buffer(pOriginal);
  lenOrig = blob_size(pOriginal);
  zTarg = blob_buffer(pTarget);
  lenTarg = blob_size(pTarget);
  blob_resize(pDelta, lenTarg+16);
  zRes = blob_buffer(pDelta);
  len = delta_create(zOrig, lenOrig, zTarg, lenTarg, zRes);