mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-11 12:09:32 +00:00
- (djm) Compile warning fixes from Mark Miller <markm@swoon.net>
This commit is contained in:
parent
e5192fafbf
commit
87d29ed405
@ -1,3 +1,6 @@
|
|||||||
|
20000830
|
||||||
|
- (djm) Compile warning fixes from Mark Miller <markm@swoon.net>
|
||||||
|
|
||||||
20000829
|
20000829
|
||||||
- (djm) Fix ^C ignored issue on Solaris. Diagnosis from Gert
|
- (djm) Fix ^C ignored issue on Solaris. Diagnosis from Gert
|
||||||
Doering <gert@greenie.muc.de>, John Horne <J.Horne@plymouth.ac.uk> and
|
Doering <gert@greenie.muc.de>, John Horne <J.Horne@plymouth.ac.uk> and
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "includes.h"
|
||||||
|
|
||||||
#ifndef HAVE_DAEMON
|
#ifndef HAVE_DAEMON
|
||||||
|
|
||||||
@ -39,13 +39,6 @@
|
|||||||
static char rcsid[] = "$OpenBSD: daemon.c,v 1.2 1996/08/19 08:22:13 tholo Exp $";
|
static char rcsid[] = "$OpenBSD: daemon.c,v 1.2 1996/08/19 08:22:13 tholo Exp $";
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_PATHS_H
|
|
||||||
# include <paths.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int
|
int
|
||||||
daemon(nochdir, noclose)
|
daemon(nochdir, noclose)
|
||||||
int nochdir, noclose;
|
int nochdir, noclose;
|
||||||
|
14
bsd-mktemp.c
14
bsd-mktemp.c
@ -34,7 +34,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "includes.h"
|
||||||
|
|
||||||
#ifndef HAVE_MKDTEMP
|
#ifndef HAVE_MKDTEMP
|
||||||
|
|
||||||
@ -42,18 +42,6 @@
|
|||||||
static char rcsid[] = "$OpenBSD: mktemp.c,v 1.13 1998/06/30 23:03:13 deraadt Exp $";
|
static char rcsid[] = "$OpenBSD: mktemp.c,v 1.13 1998/06/30 23:03:13 deraadt Exp $";
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include "bsd-misc.h"
|
|
||||||
#include "bsd-arc4random.h"
|
|
||||||
|
|
||||||
static int _gettemp(char *, int *, int, int);
|
static int _gettemp(char *, int *, int, int);
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -116,7 +116,9 @@ static void dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c );
|
|||||||
#define DP_C_LDOUBLE 3
|
#define DP_C_LDOUBLE 3
|
||||||
|
|
||||||
#define char_to_int(p) (p - '0')
|
#define char_to_int(p) (p - '0')
|
||||||
#define MAX(p,q) ((p >= q) ? p : q)
|
#ifndef MAX
|
||||||
|
# define MAX(p,q) ((p >= q) ? p : q)
|
||||||
|
#endif
|
||||||
|
|
||||||
static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
|
static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
|
||||||
{
|
{
|
||||||
|
@ -1837,7 +1837,9 @@ session_proctitle(Session *s)
|
|||||||
void
|
void
|
||||||
do_authenticated2(void)
|
do_authenticated2(void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_LOGIN_CAP
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Cancel the alarm we set to limit the time taken for
|
* Cancel the alarm we set to limit the time taken for
|
||||||
|
Loading…
Reference in New Issue
Block a user