Skip to content

Commit

Permalink
- dtucker@cvs.openbsd.org 2008/06/13 00:12:02
Browse files Browse the repository at this point in the history
     [sftp.h log.h]
     replace __dead with __attribute__((noreturn)), makes things
     a little easier to port.  Also, add it to sigdie().  ok djm@
  • Loading branch information
daztucker committed Jun 13, 2008
1 parent ff4454d commit f8b7eb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@
- ian@cvs.openbsd.org 2008/06/12 23:24:58
[sshconnect.c]
tweak wording in message, ok deraadt@ jmc@
- dtucker@cvs.openbsd.org 2008/06/13 00:12:02
[sftp.h log.h]
replace __dead with __attribute__((noreturn)), makes things
a little easier to port. Also, add it to sigdie(). ok djm@
- (dtucker) [clientloop.c serverloop.c] channel_register_filter now
takes 2 more args. with djm@

Expand Down Expand Up @@ -4303,4 +4307,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@

$Id: ChangeLog,v 1.4993 2008/06/13 00:21:51 dtucker Exp $
$Id: ChangeLog,v 1.4994 2008/06/13 00:22:54 dtucker Exp $
10 changes: 6 additions & 4 deletions log.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: log.h,v 1.16 2008/06/10 04:50:25 dtucker Exp $ */
/* $OpenBSD: log.h,v 1.17 2008/06/13 00:12:02 dtucker Exp $ */

/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
Expand Down Expand Up @@ -53,15 +53,17 @@ const char * log_facility_name(SyslogFacility);
LogLevel log_level_number(char *);
const char * log_level_name(LogLevel);

void fatal(const char *, ...) __dead __attribute__((format(printf, 1, 2)));
void fatal(const char *, ...) __attribute__((noreturn))
__attribute__((format(printf, 1, 2)));
void error(const char *, ...) __attribute__((format(printf, 1, 2)));
void sigdie(const char *, ...) __attribute__((format(printf, 1, 2)));
void sigdie(const char *, ...) __attribute__((noreturn))
__attribute__((format(printf, 1, 2)));
void logit(const char *, ...) __attribute__((format(printf, 1, 2)));
void verbose(const char *, ...) __attribute__((format(printf, 1, 2)));
void debug(const char *, ...) __attribute__((format(printf, 1, 2)));
void debug2(const char *, ...) __attribute__((format(printf, 1, 2)));
void debug3(const char *, ...) __attribute__((format(printf, 1, 2)));

void do_log(LogLevel, const char *, va_list);
void cleanup_exit(int) __dead;
void cleanup_exit(int) __attribute__((noreturn));
#endif
4 changes: 2 additions & 2 deletions sftp.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: sftp.h,v 1.8 2008/04/18 12:32:11 djm Exp $ */
/* $OpenBSD: sftp.h,v 1.9 2008/06/13 00:12:02 dtucker Exp $ */

/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
Expand Down Expand Up @@ -98,4 +98,4 @@
struct passwd;

int sftp_server_main(int, char **, struct passwd *);
void sftp_server_cleanup_exit(int) __dead;
void sftp_server_cleanup_exit(int) __attribute__((noreturn));

0 comments on commit f8b7eb7

Please sign in to comment.