summaryrefslogtreecommitdiffstats
path: root/contrib/openpam
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-12-04 14:37:35 +0000
committerdes <des@FreeBSD.org>2002-12-04 14:37:35 +0000
commitd4a7314383c221c0185234e6671f90d69ec22da9 (patch)
tree6761d09cbace6e6e5f0618a5726d6a850a7074ef /contrib/openpam
parent9bd2a545b1ca3a45f5e0b212ba0636c6ba6b5665 (diff)
downloadFreeBSD-src-d4a7314383c221c0185234e6671f90d69ec22da9.zip
FreeBSD-src-d4a7314383c221c0185234e6671f90d69ec22da9.tar.gz
Add default cases to the switches (perforce change 21902)
Diffstat (limited to 'contrib/openpam')
-rw-r--r--contrib/openpam/lib/openpam_log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/openpam/lib/openpam_log.c b/contrib/openpam/lib/openpam_log.c
index 1bbe623..f512c62 100644
--- a/contrib/openpam/lib/openpam_log.c
+++ b/contrib/openpam/lib/openpam_log.c
@@ -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;
}
OpenPOWER on IntegriCloud