summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-06-28 08:33:52 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-06-28 08:33:52 +0200
commit1c0cddad9b574ce1d1de6a9dca22dcd844c690ec (patch)
tree2a6fc8e7fc826d11b6eaa96890f486e185ed72be /src/intrf.c
parentd13df23aa19dfc29ea38393908f42cd470c1d344 (diff)
move get_default_location() from src/intrf.c to src/askloc.c
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/intrf.c b/src/intrf.c
index 2fc08b6..cd5d6c7 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -206,25 +206,6 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
#define PATH_DRIVE_LENGTH 9
#endif
-char *td_getcwd(char *buf, unsigned long size)
-{
- /* buf must non-NULL*/
-#ifdef HAVE_GETCWD
- if(getcwd(buf, size)!=NULL)
- return buf;
-#endif
- buf[0]='.';
- buf[1]='\0';
- return buf;
-}
-
-char *get_default_location(void)
-{
- char dst_directory[4096];
- td_getcwd(dst_directory, sizeof(dst_directory));
- return strdup(dst_directory);
-}
-
unsigned long long int ask_number_cli(char **current_cmd, const unsigned long long int val_cur, const unsigned long long int val_min, const unsigned long long int val_max, const char * _format, ...)
{
if(*current_cmd!=NULL)