Author: stefan2
Date: Mon Oct 15 03:52:21 2012
New Revision: 1398191

URL: http://svn.apache.org/viewvc?rev=1398191&view=rev
Log:
* subversion/libsvn_delta/text_delta.c
  (svn_txdelta_send_contents): fix "non-standard initialization" warning
* subversion/libsvn_repos/reporter.c
  (delta_proplists): ditto

Modified:
    subversion/trunk/subversion/libsvn_delta/text_delta.c
    subversion/trunk/subversion/libsvn_repos/reporter.c

Modified: subversion/trunk/subversion/libsvn_delta/text_delta.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/text_delta.c?rev=1398191&r1=1398190&r2=1398191&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/text_delta.c (original)
+++ subversion/trunk/subversion/libsvn_delta/text_delta.c Mon Oct 15 03:52:21 
2012
@@ -1008,7 +1008,9 @@ svn_txdelta_send_contents(const unsigned
 {
   svn_string_t new_data;
   svn_txdelta_op_t op = { svn_txdelta_new, 0, 0 };
-  svn_txdelta_window_t window = { 0, 0, 0, 1, 0, &op, &new_data};
+  svn_txdelta_window_t window = { 0, 0, 0, 1, 0 };
+  window.ops = &op;
+  window.new_data = &new_data;
 
   /* send CONTENT as a series of max-sized windows */
   while (len > 0)

Modified: subversion/trunk/subversion/libsvn_repos/reporter.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/reporter.c?rev=1398191&r1=1398190&r2=1398191&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/reporter.c (original)
+++ subversion/trunk/subversion/libsvn_repos/reporter.c Mon Oct 15 03:52:21 2012
@@ -534,7 +534,9 @@ delta_proplists(report_baton_t *b, svn_r
     {
       /* convert committed-rev to  string */
       char buf[SVN_INT64_BUFFER_SIZE];
-      svn_string_t cr_str = { buf, svn__i64toa(buf, crev) };
+      svn_string_t cr_str;
+      cr_str.data = buf;
+      cr_str.len = svn__i64toa(buf, crev);
 
       /* Transmit the committed-rev. */
       SVN_ERR(change_fn(b, object,


Reply via email to