8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/port/path.c,v 1.34 2004/08/29 21:08:48 tgl Exp $
11
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.35 2004/09/02 16:42:00 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -429,8 +429,6 @@ make_relative(const char *my_exec_path, const char *p, char *ret_path)
429
429
static const char *
430
430
relative_path (const char * bin_path ,const char * other_path )
431
431
{
432
- const char * other_sep = other_path ;
433
-
434
432
#ifdef WIN32
435
433
/* Driver letters match? */
436
434
if (isalpha (* bin_path )&& bin_path [1 ]== ':' &&
@@ -446,7 +444,6 @@ relative_path(const char *bin_path, const char *other_path)
446
444
return NULL ;
447
445
bin_path += 2 ;
448
446
other_path += 2 ;
449
- other_sep = other_path + 1 ;/* past separator */
450
447
}
451
448
#endif
452
449
@@ -470,9 +467,6 @@ relative_path(const char *bin_path, const char *other_path)
470
467
)
471
468
break ;
472
469
473
- if (IS_DIR_SEP (* other_path ))
474
- other_sep = other_path + 1 ;/* past separator */
475
-
476
470
bin_path ++ ;
477
471
other_path ++ ;
478
472
}