Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaxt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dkrz-sw
yaxt
Commits
3a45e9c8
Commit
3a45e9c8
authored
4 months ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
xt_config: Fix copy-pasta in error messages.
parent
8430e90f
No related branches found
Branches containing commit
No related tags found
1 merge request
!31
Draft: Attempt at fuller exchanger interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xt_config.c
+2
-2
2 additions, 2 deletions
src/xt_config.c
with
2 additions
and
2 deletions
src/xt_config.c
+
2
−
2
View file @
3a45e9c8
...
...
@@ -236,7 +236,7 @@ int xt_config_get_sort_algorithm_id(Xt_config config)
if
(
eentry
!=
SIZE_MAX
)
return
(
int
)
eentry
;
static
const
char
fmt
[]
=
"error: unexpected
exchanger function
(%p)!"
;
=
"error: unexpected
sort algorithm
(%p)!"
;
char
buf
[
sizeof
(
fmt
)
+
3
*
sizeof
(
void
*
)];
sprintf
(
buf
,
fmt
,
(
const
void
*
)
sort_funcs
);
Xt_abort
(
Xt_default_comm
,
buf
,
filename
,
__LINE__
);
...
...
@@ -249,7 +249,7 @@ void xt_config_set_sort_algorithm_by_id(Xt_config config, int algo)
return
;
}
static
const
char
fmt
[]
=
"error: user-requested
exchanger
code (%d) does not exist!"
;
=
"error: user-requested
sort algorithm
code (%d) does not exist!"
;
char
buf
[
sizeof
(
fmt
)
+
3
*
sizeof
(
int
)];
sprintf
(
buf
,
fmt
,
algo
);
Xt_abort
(
Xt_default_comm
,
buf
,
filename
,
__LINE__
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment