Browse Source

Merge remote-tracking branch 'origin/maint-0.2.2'

Nick Mathewson 14 years ago
parent
commit
9919b01275
7 changed files with 25 additions and 20 deletions
  1. 13 9
      doc/HACKING
  2. 1 1
      src/common/compat.c
  3. 3 2
      src/common/container.c
  4. 3 3
      src/or/connection.c
  5. 3 3
      src/or/or.h
  6. 1 1
      src/test/Makefile.am
  7. 1 1
      src/test/tinytest_demo.c

+ 13 - 9
doc/HACKING

@@ -456,7 +456,6 @@ interesting and understandable.
 
 
    2.7) Run it through fmt to make it pretty.
    2.7) Run it through fmt to make it pretty.
 
 
-
 3) Compose a short release blurb to highlight the user-facing
 3) Compose a short release blurb to highlight the user-facing
 changes. Insert said release blurb into the ChangeLog stanza. If it's
 changes. Insert said release blurb into the ChangeLog stanza. If it's
 a stable release, add it to the ReleaseNotes file too. If we're adding
 a stable release, add it to the ReleaseNotes file too. If we're adding
@@ -472,15 +471,19 @@ or somebody to try building it on Windows.
 6) Get at least two of weasel/arma/karsten to put the new version number
 6) Get at least two of weasel/arma/karsten to put the new version number
 in their approved versions list.
 in their approved versions list.
 
 
-7) Sign and push the tarball to the website in the dist/ directory. Sign
-and push the git tag.
-   (That's either "git tag -u <keyid> tor-0.2.x.y-status", then
-    "git push origin tag tor-0.2.x.y-status".  To sign the
-    tarball, "gpg -ba <the_tarball>".  Put the files in
-    /srv/www-master.torproject.org/htdocs/dist/ on vescum.)
+7) Sign the tarball, then sign and push the git tag:
+  gpg -ba <the_tarball>
+  git tag -u <keyid> tor-0.2.x.y-status
+  git push origin tag tor-0.2.x.y-status
+
+8) scp the tarball and its sig to the website in the dist/ directory
+(i.e. /srv/www-master.torproject.org/htdocs/dist/ on vescum). Edit
+include/versions.wmi to note the new version. From your website checkout,
+run ./publish to build and publish the website.
 
 
-8) Edit include/versions.wmi to note the new version. From your website
-checkout, run ./publish to build and publish the website.
+Try not to delay too much between scp'ing the tarball and running
+./publish -- the website has multiple A records and your scp only sent
+it to one of them.
 
 
 9) Email Erinn and weasel (cc'ing tor-assistants) that a new tarball
 9) Email Erinn and weasel (cc'ing tor-assistants) that a new tarball
 is up. This step should probably change to mailing more packagers.
 is up. This step should probably change to mailing more packagers.
@@ -498,3 +501,4 @@ changelog to tor-talk or tor-announce.
 
 
   (We might be moving to faster announcements, but don't announce until
   (We might be moving to faster announcements, but don't announce until
   the website is at least updated.)
   the website is at least updated.)
+

+ 1 - 1
src/common/compat.c

@@ -444,7 +444,7 @@ tor_vasprintf(char **strp, const char *fmt, va_list args)
  *
  *
  * This function is <em>not</em> timing-safe.
  * This function is <em>not</em> timing-safe.
  *
  *
- * Requires that nlen be greater than zero.
+ * Requires that <b>nlen</b> be greater than zero.
  */
  */
 const void *
 const void *
 tor_memmem(const void *_haystack, size_t hlen,
 tor_memmem(const void *_haystack, size_t hlen,

+ 3 - 2
src/common/container.c

@@ -337,7 +337,8 @@ smartlist_insert(smartlist_t *sl, int idx, void *val)
 
 
 /**
 /**
  * Split a string <b>str</b> along all occurrences of <b>sep</b>,
  * Split a string <b>str</b> along all occurrences of <b>sep</b>,
- * adding the split strings, in order, to <b>sl</b>.
+ * appending the (newly allocated) split strings, in order, to
+ * <b>sl</b>.  Return the number of strings added to <b>sl</b>.
  *
  *
  * If <b>flags</b>&amp;SPLIT_SKIP_SPACE is true, remove initial and
  * If <b>flags</b>&amp;SPLIT_SKIP_SPACE is true, remove initial and
  * trailing space from each entry.
  * trailing space from each entry.
@@ -346,7 +347,7 @@ smartlist_insert(smartlist_t *sl, int idx, void *val)
  * If <b>flags</b>&amp;SPLIT_STRIP_SPACE is true, strip spaces from each
  * If <b>flags</b>&amp;SPLIT_STRIP_SPACE is true, strip spaces from each
  * split string.
  * split string.
  *
  *
- * If max>0, divide the string into no more than <b>max</b> pieces. If
+ * If <b>max</b>\>0, divide the string into no more than <b>max</b> pieces. If
  * <b>sep</b> is NULL, split on any sequence of horizontal space.
  * <b>sep</b> is NULL, split on any sequence of horizontal space.
  */
  */
 int
 int

+ 3 - 3
src/or/connection.c

@@ -3114,15 +3114,15 @@ connection_outbuf_too_full(connection_t *conn)
   return (conn->outbuf_flushlen > 10*CELL_PAYLOAD_SIZE);
   return (conn->outbuf_flushlen > 10*CELL_PAYLOAD_SIZE);
 }
 }
 
 
-/** Try to flush more bytes onto conn-\>s.
+/** Try to flush more bytes onto <b>conn</b>-\>s.
  *
  *
  * This function gets called either from conn_write() in main.c
  * This function gets called either from conn_write() in main.c
  * when poll() has declared that conn wants to write, or below
  * when poll() has declared that conn wants to write, or below
  * from connection_write_to_buf() when an entire TLS record is ready.
  * from connection_write_to_buf() when an entire TLS record is ready.
  *
  *
- * Update conn-\>timestamp_lastwritten to now, and call flush_buf
+ * Update <b>conn</b>-\>timestamp_lastwritten to now, and call flush_buf
  * or flush_buf_tls appropriately. If it succeeds and there are no more
  * or flush_buf_tls appropriately. If it succeeds and there are no more
- * more bytes on conn->outbuf, then call connection_finished_flushing
+ * more bytes on <b>conn</b>-\>outbuf, then call connection_finished_flushing
  * on it too.
  * on it too.
  *
  *
  * If <b>force</b>, then write as many bytes as possible, ignoring bandwidth
  * If <b>force</b>, then write as many bytes as possible, ignoring bandwidth

+ 3 - 3
src/or/or.h

@@ -2483,14 +2483,14 @@ typedef struct or_circuit_t {
   cell_ewma_t p_cell_ewma;
   cell_ewma_t p_cell_ewma;
 } or_circuit_t;
 } or_circuit_t;
 
 
-/** Convert a circuit subtype to a circuit_t.*/
+/** Convert a circuit subtype to a circuit_t. */
 #define TO_CIRCUIT(x)  (&((x)->_base))
 #define TO_CIRCUIT(x)  (&((x)->_base))
 
 
-/** Convert a circuit_t* to a pointer to the enclosing or_circuit_t.  Asserts
+/** Convert a circuit_t* to a pointer to the enclosing or_circuit_t.  Assert
  * if the cast is impossible. */
  * if the cast is impossible. */
 static or_circuit_t *TO_OR_CIRCUIT(circuit_t *);
 static or_circuit_t *TO_OR_CIRCUIT(circuit_t *);
 /** Convert a circuit_t* to a pointer to the enclosing origin_circuit_t.
 /** Convert a circuit_t* to a pointer to the enclosing origin_circuit_t.
- * Asserts if the cast is impossible. */
+ * Assert if the cast is impossible. */
 static origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *);
 static origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *);
 
 
 static INLINE or_circuit_t *TO_OR_CIRCUIT(circuit_t *x)
 static INLINE or_circuit_t *TO_OR_CIRCUIT(circuit_t *x)

+ 1 - 1
src/test/Makefile.am

@@ -8,7 +8,7 @@ AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
 	-I"$(top_srcdir)/src/or"
 	-I"$(top_srcdir)/src/or"
 
 
 # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
 # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
-# This seems to matter nowhere but on windows, but I assure you that it
+# This seems to matter nowhere but on Windows, but I assure you that it
 # matters a lot there, and is quite hard to debug if you forget to do it.
 # matters a lot there, and is quite hard to debug if you forget to do it.
 
 
 test_SOURCES = \
 test_SOURCES = \

+ 1 - 1
src/test/tinytest_demo.c

@@ -39,7 +39,7 @@
 /* ============================================================ */
 /* ============================================================ */
 
 
 /* First, let's see if strcmp is working.  (All your test cases should be
 /* First, let's see if strcmp is working.  (All your test cases should be
- * functions declared to take a single void * as) an argument. */
+ * functions declared to take a single void * as an argument.) */
 void
 void
 test_strcmp(void *data)
 test_strcmp(void *data)
 {
 {