summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2018-07-10 19:39:52 +1000
committerDamien Miller <djm@mindrot.org>2018-07-10 19:39:52 +1000
commit120a1ec74e8d9d29f4eb9a27972ddd22351ddef9 (patch)
tree52308557de781f1d8ffb083369e0c209bc305c02 /loginrec.c
parent0f3958c1e6ffb8ea4ba27e2a97a00326fce23246 (diff)
Adapt portable to legacy buffer API removal
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c
index bdbc9bbf4..8e9560f3e 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -177,7 +177,8 @@
177#include "packet.h" 177#include "packet.h"
178#include "canohost.h" 178#include "canohost.h"
179#include "auth.h" 179#include "auth.h"
180#include "buffer.h" 180#include "sshbuf.h"
181#include "ssherr.h"
181 182
182#ifdef HAVE_UTIL_H 183#ifdef HAVE_UTIL_H
183# include <util.h> 184# include <util.h>
@@ -210,7 +211,7 @@ int utmpx_get_entry(struct logininfo *li);
210int wtmp_get_entry(struct logininfo *li); 211int wtmp_get_entry(struct logininfo *li);
211int wtmpx_get_entry(struct logininfo *li); 212int wtmpx_get_entry(struct logininfo *li);
212 213
213extern Buffer loginmsg; 214extern struct sshbuf *loginmsg;
214 215
215/* pick the shortest string */ 216/* pick the shortest string */
216#define MIN_SIZEOF(s1,s2) (sizeof(s1) < sizeof(s2) ? sizeof(s1) : sizeof(s2)) 217#define MIN_SIZEOF(s1,s2) (sizeof(s1) < sizeof(s2) ? sizeof(s1) : sizeof(s2))