mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Add debug_return_const_str and debug_return_const_ptr for returning
a const string or pointer. Using const for the normal versions produces warnings with the Tru64 compiler.
This commit is contained in:
@@ -768,7 +768,7 @@ logfac2str(int n)
|
||||
|
||||
for (fac = facilities; fac->name && fac->num != n; fac++)
|
||||
;
|
||||
debug_return_str(fac->name);
|
||||
debug_return_const_str(fac->name);
|
||||
#else
|
||||
return "default";
|
||||
#endif /* LOG_NFACILITIES */
|
||||
@@ -800,7 +800,7 @@ logpri2str(int n)
|
||||
|
||||
for (pri = priorities; pri->name && pri->num != n; pri++)
|
||||
;
|
||||
debug_return_str(pri->name);
|
||||
debug_return_const_str(pri->name);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
Reference in New Issue
Block a user