Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ed19079c
Commit
ed19079c
authored
Aug 02, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge grichter@bk-internal.mysql.com:/home/bk/mysql-5.0
into lmy002.wdf.sap.corp:/home/georg/work/mysql/prod/mysql-5.0
parents
a29f10e8
cb6e70a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/udf_example.c
sql/udf_example.c
+1
-1
No files found.
sql/udf_example.c
View file @
ed19079c
...
@@ -806,6 +806,7 @@ char *reverse_lookup(UDF_INIT *initid __attribute__((unused)), UDF_ARGS *args,
...
@@ -806,6 +806,7 @@ char *reverse_lookup(UDF_INIT *initid __attribute__((unused)), UDF_ARGS *args,
#if defined(HAVE_GETHOSTBYADDR_R) && defined(HAVE_SOLARIS_STYLE_GETHOST)
#if defined(HAVE_GETHOSTBYADDR_R) && defined(HAVE_SOLARIS_STYLE_GETHOST)
char
name_buff
[
256
];
char
name_buff
[
256
];
struct
hostent
tmp_hostent
;
struct
hostent
tmp_hostent
;
int
tmp_errno
;
#endif
#endif
struct
hostent
*
hp
;
struct
hostent
*
hp
;
unsigned
long
taddr
;
unsigned
long
taddr
;
...
@@ -845,7 +846,6 @@ char *reverse_lookup(UDF_INIT *initid __attribute__((unused)), UDF_ARGS *args,
...
@@ -845,7 +846,6 @@ char *reverse_lookup(UDF_INIT *initid __attribute__((unused)), UDF_ARGS *args,
return
0
;
return
0
;
}
}
#if defined(HAVE_GETHOSTBYADDR_R) && defined(HAVE_SOLARIS_STYLE_GETHOST)
#if defined(HAVE_GETHOSTBYADDR_R) && defined(HAVE_SOLARIS_STYLE_GETHOST)
int
tmp_errno
;
if
(
!
(
hp
=
gethostbyaddr_r
((
char
*
)
&
taddr
,
sizeof
(
taddr
),
AF_INET
,
if
(
!
(
hp
=
gethostbyaddr_r
((
char
*
)
&
taddr
,
sizeof
(
taddr
),
AF_INET
,
&
tmp_hostent
,
name_buff
,
sizeof
(
name_buff
),
&
tmp_hostent
,
name_buff
,
sizeof
(
name_buff
),
&
tmp_errno
)))
&
tmp_errno
)))
...
...
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