[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

more non constants in struct initializers.

From: Max Okumoto <okumoto_at_ucsd.edu>
Date: 2001-12-05 11:17:38 CET

* subversion/libsvn_ra_local/commit_editor.c
  Fixed non constants in struct initializers.

* subversion/subversion/tests/libsvn_repos/dir-delta-editor.c
  Fixed non constants in struct initializers.

Index: subversion/subversion/libsvn_ra_local/commit_editor.c
===================================================================
--- subversion/subversion/libsvn_ra_local/.svn/text-base/commit_editor.c.svn-base Sun Dec 2 13:44:20 2001
+++ subversion/subversion/libsvn_ra_local/commit_editor.c Tue Dec 4 11:06:18 2001
@@ -490,7 +490,9 @@
 {
   struct file_baton *fb = file_baton;
   struct edit_baton *eb = fb->parent->edit_baton;
- svn_string_t propvalue = { value->data, value->len };
+ svn_string_t propvalue;
+ propvalue.data = value->data;
+ propvalue.len = value->len;
 
   /* This routine is a mindless wrapper. */
   SVN_ERR (svn_fs_change_node_prop (eb->txn_root, fb->path->data,
@@ -507,7 +509,9 @@
 {
   struct dir_baton *db = dir_baton;
   struct edit_baton *eb = db->edit_baton;
- svn_string_t propvalue = { value->data, value->len };
+ svn_string_t propvalue;
+ propvalue.data = value->data;
+ propvalue.len = value->len;
 
   /* This routine is a mindless wrapper. */
   SVN_ERR (svn_fs_change_node_prop (eb->txn_root, db->path->data,

Index: subversion/subversion/tests/libsvn_repos/dir-delta-editor.c
===================================================================
--- subversion/subversion/tests/libsvn_repos/.svn/text-base/dir-delta-editor.c.svn-base Sun Dec 2 13:36:11 2001
+++ subversion/subversion/tests/libsvn_repos/dir-delta-editor.c Tue Dec 4 11:44:30 2001
@@ -265,7 +265,9 @@
                        svn_stringbuf_t *name, svn_stringbuf_t *value)
 {
   struct file_baton *fb = (struct file_baton *) file_baton;
- svn_string_t propvalue = { value->data, value->len };
+ svn_string_t propvalue;
+ propvalue.data = value->data;
+ propvalue.len = value->len;
 
   return svn_fs_change_node_prop (fb->dir_baton->edit_baton->txn_root,
                                   fb->path->data, name->data, &propvalue,
@@ -278,7 +280,9 @@
                       svn_stringbuf_t *name, svn_stringbuf_t *value)
 {
   struct dir_baton *d = (struct dir_baton *) parent_baton;
- svn_string_t propvalue = { value->data, value->len };
+ svn_string_t propvalue;
+ propvalue.data = value->data;
+ propvalue.len = value->len;
 
   return svn_fs_change_node_prop (d->edit_baton->txn_root,
                                   d->path->data, name->data, &propvalue,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:51 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.