Skip to content
Snippets Groups Projects
Commit 72d99b85 authored by Robert Butora's avatar Robert Butora
Browse files

fix warnings

parent 9ad73a98
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,6 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue)
if (!fits_open_file(&fptr, filename.c_str(), iomode, &status))
{
//if (fits_read_card(fptr, keyname.c_str(), card, &status))
if (fits_read_str(fptr,token.c_str(), card, &status))
{
printf("Keyword does not exist\n");
......@@ -225,7 +224,6 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue)
comment[0] = '\0';
status = 0; /* reset status after error */
strcpy(card,token.c_str());
//goto f_end;
}
else
{
......@@ -267,7 +265,7 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue)
printf("%s\n",card);
}
}
f_end:
fits_close_file(fptr, &status);
}
......@@ -365,7 +363,7 @@ string fitsfiles::append_card_if_not_in_header(string header, const vector<fits_
// NOT: checks only for _exact_ match on card-key: 'xxxxx____=' ? 'yyyyy____='
bool is_in_header(string& hdr, string& card)
{
for(int offset=0; offset<hdr.size(); offset+=80)
for(string::size_type offset=0; offset<hdr.size(); offset+=80)
{
string hdr_card_key{ hdr.substr(offset,10) };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment