~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/libsvn_fs_fs/key-gen.c

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
void
42
42
svn_fs_fs__add_keys(const char *key1, const char *key2, char *result)
43
43
{
44
 
  int i1 = strlen(key1) - 1;
45
 
  int i2 = strlen(key2) - 1;
 
44
  apr_ssize_t i1 = strlen(key1) - 1;
 
45
  apr_ssize_t i2 = strlen(key2) - 1;
46
46
  int i3 = 0;
47
47
  int val;
48
48
  int carry = 0;
60
60
      carry = val / 36;
61
61
      val = val % 36;
62
62
 
63
 
      buf[i3++] = (val <= 9) ? (val + '0') : (val - 10 + 'a');
 
63
      buf[i3++] = (char)((val <= 9) ? (val + '0') : (val - 10 + 'a'));
64
64
 
65
65
      if (i1>=0)
66
66
        i1--;
79
79
void
80
80
svn_fs_fs__next_key(const char *this, apr_size_t *len, char *next)
81
81
{
82
 
  int i;
 
82
  apr_ssize_t i;
83
83
  apr_size_t olen = *len;     /* remember the first length */
84
84
  char c;                     /* current char */
85
85
  svn_boolean_t carry = TRUE; /* boolean: do we have a carry or not?
115
115
              if (c == '9')
116
116
                next[i] = 'a';
117
117
              else
118
 
                next[i] = c + 1;
 
118
                next[i] = ++c;
119
119
            }
120
120
        }
121
121
      else
146
146
int
147
147
svn_fs_fs__key_compare(const char *a, const char *b)
148
148
{
149
 
  int a_len = strlen(a);
150
 
  int b_len = strlen(b);
 
149
  apr_size_t a_len = strlen(a);
 
150
  apr_size_t b_len = strlen(b);
151
151
  int cmp;
152
152
 
153
153
  if (a_len > b_len)