Skip to content

Commit

Permalink
Clean up simkenwood warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed May 15, 2022
1 parent 4c2ab11 commit ecd78e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions simulators/simkenwood.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ int main(int argc, char *argv[])
else if (strcmp(buf, "FA;") == 0)
{
SNPRINTF(buf, sizeof(buf), "FA%011d;", freqa);
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strcmp(buf, "FB;") == 0)
{
SNPRINTF(buf, sizeof(buf), "FA%011d;", freqa);
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "FA", 2) == 0)
{
Expand All @@ -217,18 +217,18 @@ int main(int argc, char *argv[])
else if (strncmp(buf, "AI;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "AI0;");
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "SA;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "SA0;");
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "MD;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "MD%d;",
modeA); // not worried about modeB yet for simulator
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "MD", 2) == 0)
{
Expand All @@ -237,7 +237,7 @@ int main(int argc, char *argv[])
else if (strncmp(buf, "FL;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "FL%03d;", filternum);
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "FL", 2) == 0)
{
Expand All @@ -246,7 +246,7 @@ int main(int argc, char *argv[])
else if (strncmp(buf, "DA;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "DA%d;", datamode);
write(fd, buf, strlen(buf));
n = write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "DA", 2) == 0)
{
Expand Down

0 comments on commit ecd78e7

Please sign in to comment.