X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=psftp.c;fp=psftp.c;h=93a96a4e152a63cc682042474a9a1c0c8d2573fc;hb=5c5ca116dbe1c62b447eaeb22d4e59db44b9a1f5;hp=793626197d3837e6927f8076aaf7f70faa2b6646;hpb=13edf90e0a4397088085cfcd53a4311319b708b4;p=PuTTY.git diff --git a/psftp.c b/psftp.c index 79362619..93a96a4e 100644 --- a/psftp.c +++ b/psftp.c @@ -169,35 +169,6 @@ char *canonify(const char *name) } } -/* - * Return a pointer to the portion of str that comes after the last - * slash (or backslash or colon, if `local' is TRUE). - * - * This function has the annoying strstr() property of taking a const - * char * and returning a char *. You should treat it as if it was a - * pair of overloaded functions, one mapping mutable->mutable and the - * other const->const :-( - */ -static char *stripslashes(const char *str, int local) -{ - char *p; - - if (local) { - p = strchr(str, ':'); - if (p) str = p+1; - } - - p = strrchr(str, '/'); - if (p) str = p+1; - - if (local) { - p = strrchr(str, '\\'); - if (p) str = p+1; - } - - return (char *)str; -} - /* * qsort comparison routine for fxp_name structures. Sorts by real * file name.