8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / krb5 / ss / requests.c
blob5c3a710d93a0aac22418dbee11a6c6fd37a1588c
1 /*
2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 #pragma ident "%Z%%M% %I% %E% SMI"
8 /*
9 * Various minor routines...
11 * Copyright 1987, 1988, 1989 by MIT
13 * For copyright information, see mit-sipb-copyright.h.
16 #include <stdio.h>
17 #include "ss_internal.h"
18 #include <libintl.h>
20 #define DECLARE(name) void name(argc,argv,sci_idx,info_ptr)int argc,sci_idx;const char * const *argv; pointer info_ptr;
23 * ss_self_identify -- assigned by default to the "." request
25 DECLARE(ss_self_identify)
27 register ss_data *info = ss_info(sci_idx);
28 printf((char *)dgettext(TEXT_DOMAIN,
29 "%s version %s\n"), info->subsystem_name,
30 info->subsystem_version);
34 * ss_subsystem_name -- print name of subsystem
36 DECLARE(ss_subsystem_name)
38 printf("%s\n", ss_info(sci_idx)->subsystem_name);
42 * ss_subsystem_version -- print version of subsystem
44 DECLARE(ss_subsystem_version)
46 printf("%s\n", ss_info(sci_idx)->subsystem_version);
50 * ss_unimplemented -- routine not implemented (should be
51 * set up as (dont_list,dont_summarize))
53 DECLARE(ss_unimplemented)
55 ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, "");