Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
f0604b95
Commit
f0604b95
authored
Apr 08, 2016
by
Uwe Schulzweida
Browse files
unitsIsPressure: replace memcmp by strncmp
parent
f7e6c445
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Makefile.in
View file @
f0604b95
...
...
@@ -942,8 +942,8 @@ distclean-generic:
maintainer-clean-generic
:
@
echo
"This command is intended for maintainers to use"
@
echo
"it deletes files that may require special tools to rebuild."
@ENABLE_CDI_LIB_FALSE@install-exec-local
:
@ENABLE_CDI_LIB_FALSE@uninstall-local
:
@ENABLE_CDI_LIB_FALSE@install-exec-local
:
clean
:
clean-am
clean-am
:
clean-generic clean-libLTLIBRARIES clean-libtool
\
...
...
src/stream_cdf.c
View file @
f0604b95
...
...
@@ -3090,11 +3090,11 @@ bool unitsIsPressure(const char *units)
{
bool
status
=
false
;
if
(
mem
cmp
(
units
,
"millibar"
,
8
)
==
0
||
mem
cmp
(
units
,
"mb"
,
2
)
==
0
||
mem
cmp
(
units
,
"hectopas"
,
8
)
==
0
||
mem
cmp
(
units
,
"hPa"
,
3
)
==
0
||
mem
cmp
(
units
,
"Pa"
,
2
)
==
0
)
if
(
strn
cmp
(
units
,
"millibar"
,
8
)
==
0
||
strn
cmp
(
units
,
"mb"
,
2
)
==
0
||
strn
cmp
(
units
,
"hectopas"
,
8
)
==
0
||
strn
cmp
(
units
,
"hPa"
,
3
)
==
0
||
strn
cmp
(
units
,
"Pa"
,
2
)
==
0
)
{
status
=
true
;
}
...
...
Write
Preview
Supports
Markdown
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