]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: rename dns_stream_on_packet() → on_stream_packet()
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Dec 2018 19:40:20 +0000 (20:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:16:29 +0000 (17:16 +0100)
Let's name this similar to on_stream_complete(). Moreover we shouldn't
invade dns_stream's namespace if we are a consumer of it.

src/resolve/resolved-dns-transaction.c

index e26241754d87b6c0f37e93d33172b19a6a5e0e5e..f9b71a35c9afccb62d66918216f43fdbd2bab50b 100644 (file)
@@ -530,7 +530,7 @@ static int on_stream_complete(DnsStream *s, int error) {
         return 0;
 }
 
-static int dns_stream_on_packet(DnsStream *s) {
+static int on_stream_packet(DnsStream *s) {
         _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL;
         DnsTransaction *t;
 
@@ -639,7 +639,7 @@ static int dns_transaction_emit_tcp(DnsTransaction *t) {
                 }
 
                 s->complete = on_stream_complete;
-                s->on_packet = dns_stream_on_packet;
+                s->on_packet = on_stream_packet;
 
                 /* The interface index is difficult to determine if we are
                  * connecting to the local host, hence fill this in right away