Mercurial > dropbear
comparison svr-chansession.c @ 1038:d3925ed45a85
Fix for old compilers, variable declarations at beginning of functions
and /**/ comments
author | Thorsten Horstmann <thorsten.horstmann@web.de> |
---|---|
date | Tue, 24 Feb 2015 20:51:18 +0800 |
parents | 7c9377467934 |
children | 2b4fd440399d |
comparison
equal
deleted
inserted
replaced
1037:7c899f24a85b | 1038:d3925ed45a85 |
---|---|
232 /* set up a session channel */ | 232 /* set up a session channel */ |
233 static int newchansess(struct Channel *channel) { | 233 static int newchansess(struct Channel *channel) { |
234 | 234 |
235 struct ChanSess *chansess; | 235 struct ChanSess *chansess; |
236 | 236 |
237 TRACE(("new chansess %p", channel)) | 237 TRACE(("new chansess %p", (void*)channel)) |
238 | 238 |
239 dropbear_assert(channel->typedata == NULL); | 239 dropbear_assert(channel->typedata == NULL); |
240 | 240 |
241 chansess = (struct ChanSess*)m_malloc(sizeof(struct ChanSess)); | 241 chansess = (struct ChanSess*)m_malloc(sizeof(struct ChanSess)); |
242 chansess->cmd = NULL; | 242 chansess->cmd = NULL; |