#include <stdio.h>
#include <strings.h>
#include <sms.h>
+#include <sms_app.h>
#include <menu.h>
#include <ctype.h>
#include "defs.h"
#include "f_defs.h"
#include "globals.h"
-#include "infodefs.h"
#include <netdb.h> /* for gethostbyname. */
return(SUB_NORMAL);
}
-/* Function Name: CanonicalizeHostname
- * Description: This function takes a machine name and canonicalize's it.
- * Arguments: machine - name of the machine to work on.
- * Returns: new name or NULL if nameserver returns error
- */
-
-char *
-CanonicalizeHostname(machine)
-char *machine;
-{
- struct hostent *hostinfo;
-
- hostinfo = gethostbyname(machine);
-/* If this fails then we just return what we were passed. */
- if (hostinfo != (struct hostent *) NULL)
- machine = hostinfo->h_name;
- return (machine);
-}
-
/* Function Name: Strsave
* Description: save a string.
* Arguments: string - the string to save.
Bool one_item;
char temp_buf[BUFSIZ], *name;
+ elem = QueueTop(elem);
one_item = (QueueCount(elem) == 1);
while (elem != NULL) {
char **info = (char **) elem->q_data;
char *hint;
{
int status;
- extern char *whoami;
+ extern char *whoami, *moira_server;
status = sms_query(name, argc, argv, proc, hint);
if (status != SMS_ABORTED && status != SMS_NOT_CONNECTED)
return(status);
- status = sms_connect();
+ status = sms_connect(moira_server);
if (status) {
com_err(whoami, status, " while re-connecting to server");
return(SMS_ABORTED);