diff options
Diffstat (limited to 'ddb/db_variables.c')
-rw-r--r-- | ddb/db_variables.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ddb/db_variables.c b/ddb/db_variables.c index 541dca1c..96f2c5c4 100644 --- a/ddb/db_variables.c +++ b/ddb/db_variables.c @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -84,7 +84,7 @@ db_get_suffix(suffix, suffix_value) suffix++; return(suffix); } - + static boolean_t db_cmp_variable_name(vp, name, ap) struct db_variable *vp; @@ -93,7 +93,7 @@ db_cmp_variable_name(vp, name, ap) { register char *var_np, *np; register level; - + for (np = name, var_np = vp->name; *var_np; ) { if (*np++ != *var_np++) return(FALSE); @@ -103,7 +103,7 @@ db_cmp_variable_name(vp, name, ap) return(FALSE); } if ((*np && *np != ':') || level < vp->min_level - || (level > 0 && (ap->suffix[0] < vp->low + || (level > 0 && (ap->suffix[0] < vp->low || (vp->high >= 0 && ap->suffix[0] > vp->high)))) return(FALSE); db_strcpy(ap->modif, (*np)? np+1: ""); @@ -238,4 +238,4 @@ db_set_cmd() db_read_write_variable(vp, &value, DB_VAR_SET, &aux_param); } -#endif MACH_KDB +#endif /* MACH_KDB */ |