Mercurial > dropbear
comparison session.h @ 614:00eca37e47e8
Add noreturn and format attribute hints for some functions.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 07 Apr 2011 12:59:18 +0000 |
parents | f9b5dc0cba61 |
children | 2b1bb792cd4d 0ad95abf8d3c |
comparison
equal
deleted
inserted
replaced
613:8cd04e707171 | 614:00eca37e47e8 |
---|---|
35 #include "queue.h" | 35 #include "queue.h" |
36 #include "listener.h" | 36 #include "listener.h" |
37 #include "packet.h" | 37 #include "packet.h" |
38 #include "tcpfwd.h" | 38 #include "tcpfwd.h" |
39 #include "chansession.h" | 39 #include "chansession.h" |
40 #include "dbutil.h" | |
40 | 41 |
41 extern int sessinitdone; /* Is set to 0 somewhere */ | 42 extern int sessinitdone; /* Is set to 0 somewhere */ |
42 extern int exitflag; | 43 extern int exitflag; |
43 | 44 |
44 void common_session_init(int sock_in, int sock_out); | 45 void common_session_init(int sock_in, int sock_out); |
50 const char* get_user_shell(); | 51 const char* get_user_shell(); |
51 void fill_passwd(const char* username); | 52 void fill_passwd(const char* username); |
52 | 53 |
53 /* Server */ | 54 /* Server */ |
54 void svr_session(int sock, int childpipe); | 55 void svr_session(int sock, int childpipe); |
55 void svr_dropbear_exit(int exitcode, const char* format, va_list param); | 56 void svr_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; |
56 void svr_dropbear_log(int priority, const char* format, va_list param); | 57 void svr_dropbear_log(int priority, const char* format, va_list param); |
57 | 58 |
58 /* Client */ | 59 /* Client */ |
59 void cli_session(int sock_in, int sock_out); | 60 void cli_session(int sock_in, int sock_out); |
60 void cli_session_cleanup(); | 61 void cli_session_cleanup(); |