summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 21:14:11 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 21:14:11 +0000
commit2fbf31533ba595c3c0ba6a0c1349208fbdfb498a (patch)
tree226089a8ad38086deea48477c9484a7b72e574b8 /src/or/routerparse.c
parentce5709184bef665a545bcbf207598ad0f991a67b (diff)
downloadtor-2fbf31533ba595c3c0ba6a0c1349208fbdfb498a.tar.gz
tor-2fbf31533ba595c3c0ba6a0c1349208fbdfb498a.zip
Tricksy compiler warnings! We hates them, hates them forever, my precious!
svn:r2615
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 31f308d2ae..71bd0f421b 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -64,7 +64,7 @@ typedef struct directory_token_t {
size_t object_size; /**< Bytes in object_body */
char *object_body; /**< Contents of object, base64-decoded. */
crypto_pk_env_t *key; /**< For public keys only. */
- char *error; /**< For _ERR tokens only. */
+ const char *error; /**< For _ERR tokens only. */
} directory_token_t;
/* ********************************************************************** */
@@ -95,7 +95,7 @@ typedef enum {
/** Table mapping keywords to token value and to argument rules. */
static struct {
- char *t; int v; arg_syntax s; obj_syntax os; where_syntax ws;
+ const char *t; int v; arg_syntax s; obj_syntax os; where_syntax ws;
} token_table[] = {
{ "accept", K_ACCEPT, ARGS, NO_OBJ, RTR_ONLY },
{ "directory-signature", K_DIRECTORY_SIGNATURE, ARGS, NEED_OBJ,DIR_ONLY},