FreeBSD/contrib/ntp/ntpq/ntpq-opts.c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
 * Code to handle the refid option.
 * Set the default display format for S2+ refids.
 * @param[in] pOptions the ntpq options data structure
 * @param[in,out] pOptDesc the option descriptor for this option.
 */
Code to handle the refid option.
Set the default display format for S2+ refids.
@param[in] pOptions the ntpq options data structure
@param[in,out] pOptDesc the option descriptor for this option.
Code to handle the refid option . Set the default display format for S2 + refids . @param [ in ] pOptions the ntpq options data structure @param [ in out ] pOptDesc the option descriptor for this option .
static void
doOptRefid(tOptions* pOptions, tOptDesc* pOptDesc)
{
    static char const * const names[2] = {
        ntpq_opt_strs+1977, ntpq_opt_strs+1044 };
    if (pOptions <= OPTPROC_EMIT_LIMIT) {
        (void) optionEnumerationVal(pOptions, pOptDesc, names, 2);
        return; 
    }
    pOptDesc->optArg.argEnum =
        optionEnumerationVal(pOptions, pOptDesc, names, 2);
}
static void doOptRefid ( tOptions * pOptions , tOptDesc * pOptDesc ) { static char const * const names [ 2 ] = { ntpq_opt_strs + 1977 , ntpq_opt_strs + 1044 } ; if ( pOptions <= OPTPROC_EMIT_LIMIT ) { ( void ) optionEnumerationVal ( pOptions , pOptDesc , names , 2 ) ; return ; } pOptDesc -> optArg . argEnum = optionEnumerationVal ( pOptions , pOptDesc , names , 2 ) ; }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 Code to handle the refid option.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Code to handle the refid option .
/* extracted from optmain.tlib near line 945 */ /* protect AutoOpts client code from internal callbacks */