diff options
| author | Enji Cooper <ngie@FreeBSD.org> | 2017-04-23 03:36:03 +0000 |
|---|---|---|
| committer | Enji Cooper <ngie@FreeBSD.org> | 2017-04-23 03:36:03 +0000 |
| commit | f06b2368bf76b83826408c641d2a1b6cb628f58c (patch) | |
| tree | 46d5135a36b7a59fb1d20bda3e2335be028291fd /lib/libgeom | |
| parent | 3c3e9e1035a1b080f21f9cf6d3c34ed55e23e33e (diff) | |
Notes
Diffstat (limited to 'lib/libgeom')
| -rw-r--r-- | lib/libgeom/geom_ctl.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/libgeom/geom_ctl.c b/lib/libgeom/geom_ctl.c index 956169f9d8546..58976a90519a9 100644 --- a/lib/libgeom/geom_ctl.c +++ b/lib/libgeom/geom_ctl.c @@ -29,23 +29,22 @@ * $FreeBSD$ */ -#include <stdio.h> +#include <sys/types.h> +#include <sys/queue.h> #include <fcntl.h> #include <errno.h> -#include <stdint.h> -#include <sys/types.h> +#include <paths.h> #include <stdarg.h> -#include <unistd.h> -#include <string.h> +#include <stdint.h> +#include <stdio.h> #include <stdlib.h> -#include <paths.h> - -#include <sys/queue.h> +#include <string.h> +#include <unistd.h> #define GCTL_TABLE 1 #include <libgeom.h> -/* +/* * Global pointer to a string that is used to avoid an errorneous free in * gctl_free. */ @@ -172,7 +171,7 @@ gctl_param_add(struct gctl_req *req, const char *name, int len, void *value, ap->len = len; else if (len < 0) { ap->flag |= GCTL_PARAM_ASCII; - ap->len = strlen(value) + 1; + ap->len = strlen(value) + 1; } } |
