Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
00d7d441
Commit
00d7d441
authored
Sep 09, 2015
by
Thomas Jahns
🤸
Browse files
Fix DCE uuid_create wrapper to work on FreeBSD and AIX.
* The previous version only worked on AIX.
parent
e74fa927
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util.c
View file @
00d7d441
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE 600
#include <errno.h>
#include <errno.h>
#include <float.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <float.h>
#include <sys/types.h>
#include <sys/types.h>
#include "cdi.h"
#include "cdi.h"
...
@@ -182,9 +183,9 @@ typedef uint32_t u_int32_t;
...
@@ -182,9 +183,9 @@ typedef uint32_t u_int32_t;
void
void
create_uuid
(
unsigned
char
*
uuid
)
create_uuid
(
unsigned
char
*
uuid
)
{
{
u
nsigned32
status
;
u
int32_t
status
;
uuid_create
((
uuid_t
*
)
uuid
,
&
status
);
uuid_create
((
uuid_t
*
)
uuid
,
&
status
);
if
(
status
=
=
-
1
)
if
(
status
!
=
uuid_s_ok
)
{
{
perror
(
"uuid generation failed!"
);
perror
(
"uuid generation failed!"
);
exit
(
1
);
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment