*/
/*
- Copyright (C) 2000-2003 Kern Sibbald and John Walker
+ Copyright (C) 2000-2004 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
/* Exported functions */
-int get_cmd(UAContext *ua, char *prompt)
+int get_cmd(UAContext *ua, const char *prompt)
{
BSOCK *sock = ua->UA_sock;
int stat;
if (is_bnet_stop(sock)) {
return 0; /* error or terminate */
}
- Dmsg1(000, "sock->msglen=%d\n", sock->msglen);
- pm_strcpy(&ua->cmd, sock->msg);
+ pm_strcpy(ua->cmd, sock->msg);
strip_trailing_junk(ua->cmd);
if (strcmp(ua->cmd, ".messages") == 0) {
qmessagescmd(ua, ua->cmd);
* Returns: 0 if failure
* 1 if success => value in ua->pint32_val
*/
-int get_pint(UAContext *ua, char *prompt)
+int get_pint(UAContext *ua, const char *prompt)
{
double dval;
ua->pint32_val = 0;
* 1 if success => ua->pint32_val == 1 for yes
* ua->pint32_val == 0 for no
*/
-int get_yesno(UAContext *ua, char *prompt)
+int get_yesno(UAContext *ua, const char *prompt)
{
int len;