Skip to content

Commit dd1a9f9

Browse files
authored
Merge pull request #1187 from xexyl/unused-arg
2 parents 8baab7e + 0389c28 commit dd1a9f9

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

CHANGES.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Major changes to the IOCCC entry toolkit
22

33

4+
## Release 2.3.44 2025-02-26
5+
6+
Remove unused arg in `write_json_files()`.
7+
8+
Updated `MKIOCCCENTRY_VERSION` to `"1.2.34 2025-02-26"`.
9+
10+
411
## Release 2.3.43 2025-02-25
512

613
Improve `mkiocccentry_test.sh` - add only required files test.
@@ -59,9 +66,13 @@ FTS functions requires a minor update to chkentry (both in `chkentry.c` and
5966
`soup/entry_util.c`) minor change or else it will not compile and also will
6067
likely segfault.
6168

62-
Updated `MKIOCCCENTRY_VERSION` to `"1.2.33 2025-02-34"`.
69+
Updated `MKIOCCCENTRY_VERSION` to `"1.2.33 2025-02-24"`.
6370
Updated `CHKENTRY_VERSION` to `"1.1.4 2025-02-24"`.
6471

72+
**NOTE**: the `MKIOCCCENTRY_VERSION` in this commit was by accident `"1.2.33
73+
2025-02-34"` but we have retroactively fixed it. Thus if you check out this
74+
specific commit you would see that the version is a mismatch here.
75+
6576

6677
## Release 2.3.41 2025-02-23
6778

mkiocccentry.c

+6-8
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ main(int argc, char *argv[])
805805
if (!quiet) {
806806
para("", "Forming the .auth.json file and .info json file ...", NULL);
807807
}
808-
write_json_files(&auth, &info, submission_dir, chkentry, fnamchk);
808+
write_json_files(&auth, &info, submission_dir, chkentry);
809809
if (!quiet) {
810810
para("... completed .auth.json and .info.json files.", "", NULL);
811811
}
@@ -7530,21 +7530,19 @@ form_info(struct info *infop)
75307530
* write_json_files
75317531
*
75327532
* Create the .auth.json and .info.json files and then verify them by running
7533-
* chkentry(1) on them.
7533+
* chkentry(1) on the submission directory.
75347534
*
75357535
* given:
75367536
* authp - pointer to auth structure
75377537
* infop - pointer to info structure
75387538
* submission_dir - submission directory
75397539
* chkentry - path to chkentry(1) tool
7540-
* fnamchk - path to fnamchk(1) tool
75417540
*
75427541
* This function does not return if a NULL pointer is encountered, if certain
75437542
* variables are not in the right range or if chkentry(1) fails.
75447543
*/
75457544
static void
7546-
write_json_files(struct auth *authp, struct info *infop, char const *submission_dir, char const *chkentry,
7547-
char const *fnamchk)
7545+
write_json_files(struct auth *authp, struct info *infop, char const *submission_dir, char const *chkentry)
75487546
{
75497547
char *info_path; /* path to .info.json file */
75507548
size_t info_path_len; /* length of path to .info.json */
@@ -7562,7 +7560,7 @@ write_json_files(struct auth *authp, struct info *infop, char const *submission_
75627560
/*
75637561
* firewall
75647562
*/
7565-
if (infop == NULL || authp == NULL || submission_dir == NULL || chkentry == NULL || fnamchk == NULL) {
7563+
if (infop == NULL || authp == NULL || submission_dir == NULL || chkentry == NULL) {
75667564
err(20, __func__, "called with NULL arg(s)");
75677565
not_reached();
75687566
}
@@ -7883,7 +7881,7 @@ write_json_files(struct auth *authp, struct info *infop, char const *submission_
78837881
*/
78847882
if (!quiet) {
78857883
para("",
7886-
"Checking the format of .auth.json and .info.json ...", NULL);
7884+
"Checking your submission directory for various issues ...", NULL);
78877885
}
78887886
dbg(DBG_HIGH, "about to perform: %s -q -- %s", chkentry, submission_dir);
78897887
exit_code = shell_cmd(__func__, false, true, "% -q -- %", chkentry, submission_dir);
@@ -7893,7 +7891,7 @@ write_json_files(struct auth *authp, struct info *infop, char const *submission_
78937891
not_reached();
78947892
}
78957893
if (!quiet) {
7896-
para("... all appears well with the .auth.json and .info.json files.", NULL);
7894+
para("... all appears well with your submission directory.", NULL);
78977895
}
78987896

78997897
/*

mkiocccentry.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ static char *get_title(struct info *infop);
179179
static char *get_abstract(struct info *infop);
180180
static int get_author_info(struct author **author_set_p);
181181
static void verify_submission_dir(char const *submission_dir, char const *ls);
182-
static void write_json_files(struct auth *authp, struct info *infop, char const *submission_dir, char const *chkentry,
183-
char const *fnamchk);
182+
static void write_json_files(struct auth *authp, struct info *infop, char const *submission_dir, char const *chkentry);
184183
static void form_auth(struct auth *authp, struct info *infop, int author_count, struct author *authorp);
185184
static void form_info(struct info *infop);
186185
static void form_tarball(char const *workdir, char const *submission_dir, char const *tarball_path, char const *tar,

soup/version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
*
6767
* NOTE: This should match the latest Release string in CHANGES.md
6868
*/
69-
#define MKIOCCCENTRY_REPO_VERSION "2.3.43 2025-02-25" /* special release format: major.minor[.patch] YYYY-MM-DD */
69+
#define MKIOCCCENTRY_REPO_VERSION "2.3.44 2025-02-26" /* special release format: major.minor[.patch] YYYY-MM-DD */
7070

7171

7272
/*
@@ -82,7 +82,7 @@
8282
/*
8383
* official mkiocccentry versions (mkiocccentry itself and answers)
8484
*/
85-
#define MKIOCCCENTRY_VERSION "1.2.33 2025-02-34" /* format: major.minor YYYY-MM-DD */
85+
#define MKIOCCCENTRY_VERSION "1.2.34 2025-02-26" /* format: major.minor YYYY-MM-DD */
8686
#define MKIOCCCENTRY_ANSWERS_VERSION "MKIOCCCENTRY_ANSWERS_IOCCC28-1.0" /* answers file version */
8787
#define MKIOCCCENTRY_ANSWERS_EOF "ANSWERS_EOF" /* answers file EOF marker */
8888

0 commit comments

Comments
 (0)