summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-27 10:36:02 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-27 10:36:02 -0400
commitc8b3e73d3645c80ef60d2c1ea35fabe2516dc767 (patch)
tree5553a10843b1f5e9d2c6ff7df8828f62e915a505 /git.c
parent58b8e22e94ce2a2ce108160ea15ad8264bd54f1d (diff)
Renamed `pr_dir` to `pr_root` in `create_info_file()`.
Diffstat (limited to 'git.c')
-rw-r--r--git.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/git.c b/git.c
index 63fdda4..ca7208a 100644
--- a/git.c
+++ b/git.c
@@ -93,7 +93,7 @@ int get_info_len(pull_request *pr) {
}
-int create_info_file(pull_request *pr, const char *pr_dir) {
+int create_info_file(pull_request *pr, const char *pr_root) {
int len;
int buf_len;
int j = 0;
@@ -108,14 +108,14 @@ int create_info_file(pull_request *pr, const char *pr_dir) {
return 0;
}
/* Is the PR directory NULL? */
- if (pr_dir == NULL) {
- log(LOG_ERR,"Pull request directory is NULL.");
+ if (pr_root == NULL) {
+ log(LOG_ERR,"Pull request root is NULL.");
return 0;
}
localtime_r(&pr->date, &tm);
- len = strlen(pr_dir) + strlen("/info");
+ len = strlen(pr_root) + strlen("/info");
buf_len = get_info_len(pr);
info = calloc(len+1, sizeof(char));
info_buf = calloc(buf_len+1, sizeof(char));
@@ -138,8 +138,8 @@ int create_info_file(pull_request *pr, const char *pr_dir) {
}
}
- /* Append /info to the PR directory. */
- sprintf(info, "%s/info", pr_dir);
+ /* Append /info to the PR root. */
+ sprintf(info, "%s/info", pr_root);
/* Is there already an info file? */
if (access(info, F_OK) == 0) {