summaryrefslogtreecommitdiffstats
path: root/sys/geom/eli/g_eli_ctl.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-09-13 08:56:07 +0000
committerpjd <pjd@FreeBSD.org>2010-09-13 08:56:07 +0000
commit6f96b7c2288e6972fad73b42080d841231294cae (patch)
tree4675ae936d21184a722c23122b0256934f486ced /sys/geom/eli/g_eli_ctl.c
parentab04d6fe3f3cad0bec4d257b1064f6959ac9d358 (diff)
downloadFreeBSD-src-6f96b7c2288e6972fad73b42080d841231294cae.zip
FreeBSD-src-6f96b7c2288e6972fad73b42080d841231294cae.tar.gz
- Allow to specify value as const pointers.
- Make optional string values always an empty string.
Diffstat (limited to 'sys/geom/eli/g_eli_ctl.c')
-rw-r--r--sys/geom/eli/g_eli_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli_ctl.c b/sys/geom/eli/g_eli_ctl.c
index 558a4f2..1d0dddf 100644
--- a/sys/geom/eli/g_eli_ctl.c
+++ b/sys/geom/eli/g_eli_ctl.c
@@ -269,7 +269,7 @@ g_eli_ctl_onetime(struct gctl_req *req, struct g_class *mp)
gctl_error(req, "No '%s' argument.", "aalgo");
return;
}
- if (strcmp(name, "none") != 0) {
+ if (*name != '\0') {
md.md_aalgo = g_eli_str2aalgo(name);
if (md.md_aalgo >= CRYPTO_ALGORITHM_MIN &&
md.md_aalgo <= CRYPTO_ALGORITHM_MAX) {
OpenPOWER on IntegriCloud