{
MessageBox(hwnd, "Internal Error", APPNAME, MB_OK | MB_ICONERROR);
exit(0);
{
MessageBox(hwnd, "Internal Error", APPNAME, MB_OK | MB_ICONERROR);
exit(0);
+ /* this line can't be reached but it placates MSVC's warnings :-) */
+ return 0;
int from_backend(int is_stderr, char *data, int len)
{
int from_backend(int is_stderr, char *data, int len)
{
HANDLE h = (is_stderr ? errhandle : outhandle);
HANDLE h = (is_stderr ? errhandle : outhandle);
- void *writedata;
- int writelen;
int osize, esize;
if (is_stderr) {
int osize, esize;
if (is_stderr) {
struct fxp_names *names;
struct fxp_name *ournames;
int nnames, namesize;
struct fxp_names *names;
struct fxp_name *ournames;
int nnames, namesize;
int i;
printf("Listing directory %s\n", dirname);
dirh = fxp_opendir(dirname);
if (dirh == NULL) {
int i;
printf("Listing directory %s\n", dirname);
dirh = fxp_opendir(dirname);
if (dirh == NULL) {
- printf("Unable to open %s: %s\n", dir, fxp_error());
+ printf("Unable to open %s: %s\n", dirname, fxp_error());
} else {
nnames = namesize = 0;
ournames = NULL;
} else {
nnames = namesize = 0;
ournames = NULL;
if (names == NULL) {
if (fxp_error_type() == SSH_FX_EOF)
break;
if (names == NULL) {
if (fxp_error_type() == SSH_FX_EOF)
break;
- printf("Reading directory %s: %s\n", dir, fxp_error());
+ printf("Reading directory %s: %s\n", dirname, fxp_error());
break;
}
if (names->nnames == 0) {
break;
}
if (names->nnames == 0) {
static void sink(char *targ, char *src)
{
char *destfname;
static void sink(char *targ, char *src)
{
char *destfname;
int exists;
DWORD attr;
HANDLE f;
int exists;
DWORD attr;
HANDLE f;
char *filename;
/*
* Ensure that . and .. are never matched by wildcards,
char *filename;
/*
* Ensure that . and .. are never matched by wildcards,
} while (n < nvals);
/* Add any missing values (backward compatibility ect). */
{
} while (n < nvals);
/* Add any missing values (backward compatibility ect). */
{
for (i = 0; i < nvals; i++) {
if (!(seen & 1<<mapping[i].v)) {
array[n] = mapping[i].v;
for (i = 0; i < nvals; i++) {
if (!(seen & 1<<mapping[i].v)) {
array[n] = mapping[i].v;
{
struct ssh_rportfwd *a = (struct ssh_rportfwd *) av;
struct ssh_rportfwd *b = (struct ssh_rportfwd *) bv;
{
struct ssh_rportfwd *a = (struct ssh_rportfwd *) av;
struct ssh_rportfwd *b = (struct ssh_rportfwd *) bv;
if (a->sport > b->sport)
return +1;
if (a->sport < b->sport)
if (a->sport > b->sport)
return +1;
if (a->sport < b->sport)
void dropdownlist(struct ctlpos *cp, char *text, int staticid, int listid)
{
RECT r;
void dropdownlist(struct ctlpos *cp, char *text, int staticid, int listid)
{
RECT r;
r.left = GAPBETWEEN;
r.right = cp->width;
r.left = GAPBETWEEN;
r.right = cp->width;
- if (wParam == hdl->listid) {
+ if ((int)wParam == hdl->listid) {
DRAGLISTINFO *dlm = (DRAGLISTINFO *)lParam;
int dest;
switch (dlm->uNotification) {
DRAGLISTINFO *dlm = (DRAGLISTINFO *)lParam;
int dest;
switch (dlm->uNotification) {