summaryrefslogtreecommitdiff
path: root/authfile.c
diff options
context:
space:
mode:
authorderaadt@openbsd.org <deraadt@openbsd.org>2015-01-20 23:14:00 +0000
committerDamien Miller <djm@mindrot.org>2015-01-26 23:58:53 +1100
commit087266ec33c76fc8d54ac5a19efacf2f4a4ca076 (patch)
tree71f57bb41b61561ebaa13026d8dc5d04d9829b00 /authfile.c
parent57e783c8ba2c0797f93977e83b2a8644a03065d8 (diff)
upstream commit
Reduce use of <sys/param.h> and transition to <limits.h> throughout. ok djm markus
Diffstat (limited to 'authfile.c')
-rw-r--r--authfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/authfile.c b/authfile.c
index d47e0058f..7d7f45ead 100644
--- a/authfile.c
+++ b/authfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: authfile.c,v 1.109 2015/01/08 10:14:08 djm Exp $ */ 1/* $OpenBSD: authfile.c,v 1.110 2015/01/20 23:14:00 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2000, 2013 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000, 2013 Markus Friedl. All rights reserved.
4 * 4 *
@@ -27,7 +27,6 @@
27 27
28#include <sys/types.h> 28#include <sys/types.h>
29#include <sys/stat.h> 29#include <sys/stat.h>
30#include <sys/param.h>
31#include <sys/uio.h> 30#include <sys/uio.h>
32 31
33#include <errno.h> 32#include <errno.h>
@@ -37,6 +36,7 @@
37#include <stdlib.h> 36#include <stdlib.h>
38#include <string.h> 37#include <string.h>
39#include <unistd.h> 38#include <unistd.h>
39#include <limits.h>
40 40
41#include "cipher.h" 41#include "cipher.h"
42#include "key.h" 42#include "key.h"
@@ -335,7 +335,7 @@ int
335sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp) 335sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)
336{ 336{
337 struct sshkey *pub = NULL; 337 struct sshkey *pub = NULL;
338 char file[MAXPATHLEN]; 338 char file[PATH_MAX];
339 int r, fd; 339 int r, fd;
340 340
341 if (keyp != NULL) 341 if (keyp != NULL)