mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
committed by
Daan De Meyer
parent
fa84c1ce00
commit
22148897cf
@@ -51,7 +51,6 @@
|
||||
#include "string-util.h"
|
||||
#include "udev-util.h"
|
||||
#include "unaligned.h"
|
||||
#include "version.h"
|
||||
|
||||
#define SUPPORTED_SMBIOS_VER 0x030300
|
||||
|
||||
@@ -663,8 +662,7 @@ static int parse_argv(int argc, char * const *argv) {
|
||||
arg_source_file = optarg;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", GIT_VERSION);
|
||||
return 0;
|
||||
return version();
|
||||
case 'h':
|
||||
return help();
|
||||
case '?':
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "build.h"
|
||||
#include "device-nodes.h"
|
||||
#include "extract-word.h"
|
||||
#include "fd-util.h"
|
||||
@@ -26,7 +27,6 @@
|
||||
#include "strv.h"
|
||||
#include "strxcpyx.h"
|
||||
#include "udev-util.h"
|
||||
#include "version.h"
|
||||
|
||||
static const struct option options[] = {
|
||||
{ "device", required_argument, NULL, 'd' },
|
||||
@@ -297,7 +297,7 @@ static int set_options(int argc, char **argv,
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
printf("%s\n", GIT_VERSION);
|
||||
version();
|
||||
exit(EXIT_SUCCESS);
|
||||
|
||||
case 'x':
|
||||
|
||||
Reference in New Issue
Block a user