summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorSharif Olorin <sio@tesser.org>2015-05-30 06:03:50 +0000
committerSharif Olorin <sio@tesser.org>2015-05-30 06:03:50 +0000
commit90e07ab338cd59caeaeb31a3d207bb34d433b8ab (patch)
tree6aa7e06d2fdabb7e0236463e99ffe54dc40ddd91 /src/or
parent12a2321501753d1872daed2e036db05845ecc416 (diff)
downloadtor-90e07ab338cd59caeaeb31a3d207bb34d433b8ab.tar.gz
tor-90e07ab338cd59caeaeb31a3d207bb34d433b8ab.zip
Fix return-type gcc warning
find_dl_schedule_and_len caused gcc to spit up with -Werror. Signed-off-by: Sharif Olorin <sio@tesser.org>
Diffstat (limited to 'src/or')
-rw-r--r--src/or/directory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 9fe3052774..549d95a13c 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3479,6 +3479,9 @@ find_dl_schedule_and_len(download_status_t *dls, int server)
default:
tor_assert(0);
}
+
+ /* Impossible, but gcc will fail with -Werror without a `return`. */
+ return NULL;
}
/** Called when an attempt to download <b>dls</b> has failed with HTTP status