- (stevesk) sftp-server.c: KNF

This commit is contained in:
Kevin Steves 2001-01-24 20:11:06 +00:00
parent b6b37ba475
commit f7ffab3ca8

View File

@ -669,14 +669,14 @@ process_fsetstat(void)
int handle, fd, ret; int handle, fd, ret;
int status = SSH2_FX_OK; int status = SSH2_FX_OK;
char *name; char *name;
id = get_int(); id = get_int();
handle = get_handle(); handle = get_handle();
a = get_attrib(); a = get_attrib();
TRACE("fsetstat id %d handle %d", id, handle); TRACE("fsetstat id %d handle %d", id, handle);
fd = handle_to_fd(handle); fd = handle_to_fd(handle);
name = handle_to_name(handle); name = handle_to_name(handle);
if ((fd < 0) || (name == NULL)) { if (fd < 0 || name == NULL) {
status = SSH2_FX_FAILURE; status = SSH2_FX_FAILURE;
} else { } else {
if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) { if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) {