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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2e238f7e
Commit
2e238f7e
authored
Aug 24, 2004
by
miguel@hegel.txg.br
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning VC++ and fix applied fisrt to source 4.1
parent
219f4f97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
22 deletions
+10
-22
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysys/my_lib.c
mysys/my_lib.c
+0
-11
mysys/my_vsnprintf.c
mysys/my_vsnprintf.c
+9
-11
No files found.
BitKeeper/etc/logging_ok
View file @
2e238f7e
...
...
@@ -68,6 +68,7 @@ miguel@hegel.(none)
miguel@hegel.br
miguel@hegel.local
miguel@hegel.txg
miguel@hegel.txg.br
miguel@light.
miguel@light.local
miguel@sartre.local
...
...
mysys/my_lib.c
View file @
2e238f7e
...
...
@@ -461,17 +461,6 @@ MY_DIR *my_dir(const char *path, myf MyFlags)
else
finfo
.
mystat
=
NULL
;
/*
If the directory is the root directory of the drive, Windows sometimes
creates hidden or system files there (like RECYCLER); do not show
them. We would need to see how this can be achieved with a Borland
compiler.
*/
#ifndef __BORLANDC__
if
(
attrib
&
(
_A_HIDDEN
|
_A_SYSTEM
))
continue
;
#endif
if
(
push_dynamic
(
dir_entries_storage
,
(
gptr
)
&
finfo
))
goto
error
;
...
...
mysys/my_vsnprintf.c
View file @
2e238f7e
...
...
@@ -33,17 +33,6 @@
length of result string
*/
int
my_snprintf
(
char
*
to
,
size_t
n
,
const
char
*
fmt
,
...)
{
int
result
;
va_list
args
;
va_start
(
args
,
fmt
);
result
=
my_vsnprintf
(
to
,
n
,
fmt
,
args
);
va_end
(
args
);
return
result
;
}
int
my_vsnprintf
(
char
*
to
,
size_t
n
,
const
char
*
fmt
,
va_list
ap
)
{
char
*
start
=
to
,
*
end
=
to
+
n
-
1
;
...
...
@@ -140,6 +129,15 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
return
(
uint
)
(
to
-
start
);
}
int
my_snprintf
(
char
*
to
,
size_t
n
,
const
char
*
fmt
,
...)
{
int
result
;
va_list
args
;
va_start
(
args
,
fmt
);
result
=
my_vsnprintf
(
to
,
n
,
fmt
,
args
);
va_end
(
args
);
return
result
;
}
#ifdef MAIN
#define OVERRUN_SENTRY 250
...
...
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