respondd: phrasing

This commit is contained in:
lemoer 2016-09-02 01:42:50 +02:00
parent c74bbc23d5
commit f029a829f2
1 changed files with 3 additions and 4 deletions

View File

@ -60,7 +60,6 @@ struct provider_list {
}; };
struct request_type { struct request_type {
// points to the corresponding provider_list for this request in the chained list
struct provider_list *providers; struct provider_list *providers;
struct json_object *cache; struct json_object *cache;
@ -210,7 +209,7 @@ int64_t schedule_idle_time(struct request_schedule *s) {
int64_t result = s->list_head->scheduled_time - now; int64_t result = s->list_head->scheduled_time - now;
if (result == 0) if (result == 0)
return -1; // zero is be infinity return -1; // zero is infinity
else else
return result; return result;
} }
@ -387,7 +386,7 @@ static struct json_object * handle_request(char *request, bool *compress) {
// Wait for an incomming request and schedule it. // Wait for an incomming request and schedule it.
// //
// 1a. If the schedule is empty, we will wait an nearly infinite time. // 1a. If the schedule is empty, we wait infinite time.
// 1b. If we have scheduled requests, we only wait for incomming requests // 1b. If we have scheduled requests, we only wait for incomming requests
// until we reach the scheduling deadline. // until we reach the scheduling deadline.
// 2a. If the incomming request was sent to a multicast destination IPv6, // 2a. If the incomming request was sent to a multicast destination IPv6,
@ -444,7 +443,7 @@ static void accept_request(struct request_schedule *schedule, int sock,
// determine destination address // determine destination address
for (cmsg = CMSG_FIRSTHDR(&mh); cmsg != NULL; cmsg = CMSG_NXTHDR(&mh, cmsg)) for (cmsg = CMSG_FIRSTHDR(&mh); cmsg != NULL; cmsg = CMSG_NXTHDR(&mh, cmsg))
{ {
// ignore the control headers that don't match what we WARRANTIES // skip other packet headers
if (cmsg->cmsg_level != IPPROTO_IPV6 || cmsg->cmsg_type != IPV6_PKTINFO) if (cmsg->cmsg_level != IPPROTO_IPV6 || cmsg->cmsg_type != IPV6_PKTINFO)
continue; continue;