aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-10-03 07:22:59 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-10-09 07:33:08 -0400
commit0315b01add0b49c922e550cc34d2781f1027c06d (patch)
tree2b9efa7711b5fc5ebf841468b5aa1974f7285db3 /com32
parentc64e50f2adad3c6c26e8dcbfb184d2338d781d57 (diff)
downloadsyslinux-0315b01add0b49c922e550cc34d2781f1027c06d.tar.gz
syslinux-0315b01add0b49c922e550cc34d2781f1027c06d.tar.xz
syslinux-0315b01add0b49c922e550cc34d2781f1027c06d.zip
rosh: remove cmdstr from rosh_pwd()
Diffstat (limited to 'com32')
-rw-r--r--com32/rosh/rosh.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index a02b1f62..1263676a 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -1082,15 +1082,10 @@ void rosh_less(const char *cmdstr)
} /* rosh_less */
/* Show PWD
- * cmdstr command string to process
*/
-void rosh_pwd(const char *cmdstr)
+void rosh_pwd(void)
{
- int istr;
char pwdstr[ROSH_PATH_SZ];
- if (cmdstr)
- istr = 0;
- ROSH_DEBUG("CMD: '%s'\n", cmdstr);
errno = 0;
if (getcwd(pwdstr, ROSH_PATH_SZ)) {
printf("%s\n", pwdstr);
@@ -1098,8 +1093,6 @@ void rosh_pwd(const char *cmdstr)
rosh_error(errno, "pwd", "");
errno = 0;
}
- istr = htonl(*(int *)pwdstr);
- ROSH_DEBUG2(" --%08X\n", istr);
} /* rosh_pwd */
/* Reboot; use warm reboot if one of certain options set
@@ -1283,7 +1276,7 @@ char rosh_command(int argc, char *argv[], const char *ipwdstr)
case 'p':
case 'P': /* run 'pwd' */
if (strncasecmp("pwd", argv[0], tlen) == 0)
- rosh_pwd(cmdstr);
+ rosh_pwd();
else
rosh_help(1, NULL);
break;