diff options
author | Sami Kerola | 2016-08-08 12:33:16 +0200 |
---|---|---|
committer | Karel Zak | 2016-08-08 12:33:16 +0200 |
commit | b7a245e27af6053c262a0e16438d4ab2ebb48016 (patch) | |
tree | 762eb2f542a415d383f4c83b1dbf74728587f738 /misc-utils/uuidd.c | |
parent | sfdisk: add show-pt-geometry to usage() and sfdisk.8 (diff) | |
download | kernel-qcow2-util-linux-b7a245e27af6053c262a0e16438d4ab2ebb48016.tar.gz kernel-qcow2-util-linux-b7a245e27af6053c262a0e16438d4ab2ebb48016.tar.xz kernel-qcow2-util-linux-b7a245e27af6053c262a0e16438d4ab2ebb48016.zip |
uuidd: remove unnecessary pidpile path variable
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/uuidd.c')
-rw-r--r-- | misc-utils/uuidd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index a3fe83044..49cf9dc51 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -543,7 +543,6 @@ int main(int argc, char **argv) { const char *socket_path = UUIDD_SOCKET_PATH; const char *pidfile_path = NULL; - const char *pidfile_path_param = NULL; const char *err_context = NULL; char buf[1024], *cp; char str[UUID_STR_LEN]; @@ -601,7 +600,7 @@ int main(int argc, char **argv) _("failed to parse --uuids")); break; case 'p': - pidfile_path_param = optarg; + pidfile_path = optarg; break; case 'P': no_pid = 1; @@ -646,10 +645,8 @@ int main(int argc, char **argv) } } - if (!no_pid && !pidfile_path_param) + if (!no_pid && !pidfile_path) pidfile_path = UUIDD_PIDFILE_PATH; - else if (pidfile_path_param) - pidfile_path = pidfile_path_param; /* custom socket path and socket-activation make no sense */ if (s_flag && uuidd_cxt.no_sock && !uuidd_cxt.quiet) |