}
-/*
- * Local Variables:
- * mode: c
- * c-indent-level: 4
- * c-continued-statement-offset: 4
- * c-brace-offset: -4
- * c-argdecl-indent: 4
- * c-label-offset: -4
- * End:
- */
+do_sms_query(name, argc, argv, proc, hint)
+char *name;
+int argc;
+char **argv;
+int (*proc)();
+char *hint;
+{
+ int status;
+ extern char *whoami;
+
+ status = sms_query(name, argc, argv, proc, hint);
+ if (status != SMS_ABORTED)
+ return(status);
+ status = sms_connect();
+ if (status) {
+ com_err(whoami, status, " while re-connecting to server");
+ return(SMS_ABORTED);
+ }
+ status = sms_auth(whoami);
+ if (status) {
+ com_err(whoami, status, " while re-authenticating to server");
+ return(SMS_ABORTED);
+ }
+ status = sms_query(name, argc, argv, proc, hint);
+ return(status);
+}
+