summaryrefslogtreecommitdiff
path: root/Kernel/Net/LoopbackAdapter.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 18:00:31 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 18:00:31 +0200
commit241bbce264f5e3593b7ec904fed419456c39fe3e (patch)
treedb54a2d7dd46b783f04e061d93315df85fd03828 /Kernel/Net/LoopbackAdapter.h
parente4dfb0fdf385ea830c729558f4c58091e5a16dcc (diff)
downloadserenity-241bbce264f5e3593b7ec904fed419456c39fe3e.zip
Kernel: LoopbackAdapter::create() => try_create()
Allow this to fail (although we VERIFY that it succeeds during boot for now, since we don't want to boot without a loopback adapter.)
Diffstat (limited to 'Kernel/Net/LoopbackAdapter.h')
-rw-r--r--Kernel/Net/LoopbackAdapter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/LoopbackAdapter.h b/Kernel/Net/LoopbackAdapter.h
index d02fe147be..046350772a 100644
--- a/Kernel/Net/LoopbackAdapter.h
+++ b/Kernel/Net/LoopbackAdapter.h
@@ -17,7 +17,7 @@ private:
LoopbackAdapter();
public:
- static NonnullRefPtr<LoopbackAdapter> create();
+ static RefPtr<LoopbackAdapter> try_create();
virtual ~LoopbackAdapter() override;
virtual void send_raw(ReadonlyBytes) override;