Skip to content

Commit 4c555f4

Browse files
committed
fixed typos - cleanup
1 parent cc9988f commit 4c555f4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Diff for: hcxhashtool.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ strncat(ouinameuserpath, ouiname, PATH_MAX -1);
20762076
fprintf(stdout, "start downloading oui from https://standards-oui.ieee.org to: %s\n", ouinameuserpath);
20772077
if((fhouitmp = tmpfile()) == NULL)
20782078
{
2079-
fprintf(stdout, "failed to create temporyry download file\n");
2079+
fprintf(stderr, "failed to create temporary download file\n");
20802080
return;
20812081
}
20822082
hnd = curl_easy_init ();
@@ -2088,13 +2088,13 @@ ret = curl_easy_perform(hnd);
20882088
curl_easy_cleanup(hnd);
20892089
if(ret != 0)
20902090
{
2091-
fprintf(stdout, "download not successful\n");
2091+
fprintf(stderr, "download not successful\n");
20922092
return;
20932093
}
20942094
rewind(fhouitmp);
20952095
if((fhoui = fopen(ouinameuserpath, "w")) == NULL)
20962096
{
2097-
fprintf(stdout, "error creating file %s", ouiname);
2097+
fprintf(stderr, "failed to create %s\n", ouiname);
20982098
return;
20992099
}
21002100
while (!feof(fhouitmp))

Diff for: whoismac.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static char ouibuff[OUIBUFFER_MAX];
3737
fprintf(stdout, "start downloading oui from https://standards-oui.ieee.org to: %s\n", ouiname);
3838
if((fhouitmp = tmpfile()) == NULL)
3939
{
40-
fprintf(stdout, "failed to create temporyry download file\n");
40+
fprintf(stderr, "failed to create temporary download file\n");
4141
return false;
4242
}
4343
hnd = curl_easy_init ();
@@ -56,7 +56,7 @@ if(ret != 0)
5656
rewind(fhouitmp);
5757
if((fhoui = fopen(ouiname, "w")) == NULL)
5858
{
59-
fprintf(stderr, "error creating file %s", ouiname);
59+
fprintf(stderr, "error creating file %s\n", ouiname);
6060
exit(EXIT_FAILURE);
6161
}
6262
while (!feof(fhouitmp))
@@ -65,7 +65,6 @@ while (!feof(fhouitmp))
6565
if(bread > 0) fwrite(ouibuff, 1, bread, fhoui);
6666
}
6767
fclose(fhoui);
68-
6968
fprintf(stdout, "download finished\n");
7069
return true;
7170
}

0 commit comments

Comments
 (0)