Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
fbb8f215
Commit
fbb8f215
authored
Oct 01, 2010
by
Thomas White
Browse files
indexamajig: Command line note goes in output stream
parent
8a3c5dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/indexamajig.c
View file @
fbb8f215
...
...
@@ -575,13 +575,6 @@ int main(int argc, char *argv[])
}
/* Start by writing the entire command line to stdout */
printf
(
"Command line:"
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
printf
(
" %s"
,
argv
[
i
]);
}
printf
(
"
\n
"
);
if
(
filename
==
NULL
)
{
filename
=
strdup
(
"-"
);
}
...
...
@@ -678,6 +671,13 @@ int main(int argc, char *argv[])
}
free
(
pdb
);
/* Start by writing the entire command line to stdout */
fprintf
(
ofh
,
"Command line:"
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
fprintf
(
ofh
,
" %s"
,
argv
[
i
]);
}
printf
(
"
\n
"
);
/* Get first filename and use it to set up the indexing */
rval
=
fgets
(
prepare_line
,
1023
,
fh
);
if
(
rval
==
NULL
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment