summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-16 20:39:37 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-16 20:39:37 +0000
commitd2893398f6c98f4ad82f05c41fb9ca40c5020015 (patch)
tree1600a6f6ab31cff26dd6a3c4710a3fd1cd5e530f /src/common
parenta3ec172e1ac0e1ae2b2a09c05edb4e7f2fef4a1e (diff)
downloadtor-d2893398f6c98f4ad82f05c41fb9ca40c5020015.tar.gz
tor-d2893398f6c98f4ad82f05c41fb9ca40c5020015.zip
r11832@catbus: nickm | 2007-02-16 15:31:59 -0500
Fix 35 remaining DOCDOC comments. Yowza. svn:r9596
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c7
-rw-r--r--src/common/util.c11
2 files changed, 10 insertions, 8 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 365af60681..e8984603d1 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -103,7 +103,8 @@ tls_log_errors(int severity, const char *doing)
}
}
-/** DOCDOC */
+/** Convert an errno (or a WSAerrno on windows) into a TOR_TLS_* error
+ * code. */
static int
tor_errno_to_tls_error(int e)
{
@@ -206,7 +207,7 @@ tor_tls_init(void)
}
}
-/** DOCDOC */
+/** Free all global TLS structures. */
void
tor_tls_free_all(void)
{
@@ -672,7 +673,7 @@ tor_tls_peer_has_cert(tor_tls_t *tls)
return 1;
}
-/** DOCDOC */
+/** Warn that a certificate lifetime extends through a certain range. */
static void
log_cert_lifetime(X509 *cert, const char *problem)
{
diff --git a/src/common/util.c b/src/common/util.c
index 11174e46d3..a2e10b77a1 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -862,9 +862,9 @@ tv_addms(struct timeval *a, long ms)
a->tv_usec %= 1000000;
}
-/** DOCDOC */
+/** Yield true iff <b>y</b> is a leap-year */
#define IS_LEAPYEAR(y) (!(y % 4) && ((y % 100) || !(y % 400)))
-/** DOCDOC */
+/** Helper: Return the number of leap-days between Jan 1, y1 and Jan 1, y2. */
static int
n_leapdays(int y1, int y2)
{
@@ -1957,11 +1957,12 @@ get_interface_address(int severity, uint32_t *addr)
#ifndef MS_WINDOWS
/* Based on code contributed by christian grothoff */
-/** DOCDOC */
+/** True iff we've called start_daemon. */
static int start_daemon_called = 0;
-/** DOCDOC */
+/** True iff we've called finish_daemon. */
static int finish_daemon_called = 0;
-/** DOCDOC */
+/** Socketpair used to communicate between parent and child process while
+ * daemonizing. */
static int daemon_filedes[2];
/** Start putting the process into daemon mode: fork and drop all resources
* except standard fds. The parent process never returns, but stays around