From a19faa452726e1c2c9897834a9139e2a0a0bca04 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 21 Sep 2018 16:53:45 +0100 Subject: [PATCH] Minor header-file cleanups. Moved the typedef of BinaryPacketProtocol into defs.h on the general principle that it's just the kind of thing that ought to go there; also removed the declaration of pq_base_init from ssh.h on the grounds that there's never been any such function! (At least, not in public source control - it existed in an early draft of commit 6e24b7d58.) --- defs.h | 2 ++ ssh.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defs.h b/defs.h index 8bd9f13e..47f7c9ba 100644 --- a/defs.h +++ b/defs.h @@ -90,6 +90,8 @@ typedef struct ptrlen { typedef struct logblank_t logblank_t; +typedef struct BinaryPacketProtocol BinaryPacketProtocol; + /* Do a compile-time type-check of 'to_check' (without evaluating it), * as a side effect of returning the value 'to_return'. Note that * although this macro double-*expands* to_return, it always diff --git a/ssh.h b/ssh.h index fd8d1677..aa6a6075 100644 --- a/ssh.h +++ b/ssh.h @@ -97,7 +97,6 @@ typedef struct PktOutQueue { PktOut *(*get)(PacketQueueBase *, int pop); } PktOutQueue; -void pq_base_init(PacketQueueBase *pqb); void pq_base_push(PacketQueueBase *pqb, PacketQueueNode *node); void pq_base_push_front(PacketQueueBase *pqb, PacketQueueNode *node); void pq_base_concatenate(PacketQueueBase *dest,