Add default cases to the switches (perforce change 21902)

This commit is contained in:
Dag-Erling Smørgrav 2002-12-04 14:37:35 +00:00
parent 9f4bac9d42
commit 9c05d469da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/openpam/dist/; revision=107579

View File

@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $P4: //depot/projects/openpam/lib/openpam_log.c#15 $
* $P4: //depot/projects/openpam/lib/openpam_log.c#16 $
*/
#include <ctype.h>
@ -74,6 +74,7 @@ _openpam_log(int level, const char *func, const char *fmt, ...)
priority = LOG_NOTICE;
break;
case PAM_LOG_ERROR:
default:
priority = LOG_ERR;
break;
}
@ -118,6 +119,7 @@ openpam_log(int level, const char *fmt, ...)
priority = LOG_NOTICE;
break;
case PAM_LOG_ERROR:
default:
priority = LOG_ERR;
break;
}