Skip to content

Commit

Permalink
fix function declaration without a prototype
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Feb 2, 2024
1 parent cbab73a commit 74c915d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion subprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int childpid = -1; /* default to a bogus pid */
volatile sig_atomic_t killed_by_us = 0;
volatile sig_atomic_t fatal_error_in_progress = 0;

void kill_process_group() {
void kill_process_group(void) {
int pgid;

killed_by_us = 1;
Expand Down
2 changes: 1 addition & 1 deletion subprocess.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __CRONUTILS_SUBPROCESS_H
#define __CRONUTILS_SUBPROCESS_H

void kill_process_group();
void kill_process_group(void);
int run_subprocess(char* command, char** args, void (*pre_wait_function)(void));

#endif /* __CRONUTILS_SUBPROCESS_H */
2 changes: 1 addition & 1 deletion tempdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ limitations under the License.
const char* template = "/tmp/cronutils-";
char* dirname = NULL;

char* make_tempdir() {
char* make_tempdir(void) {
uid_t uid;
struct passwd* pw;
struct stat st;
Expand Down
2 changes: 1 addition & 1 deletion tempdir.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ limitations under the License.
#ifndef __CRONUTILS_TEMPDIR_H__
#define __CRONUTILS_TEMPDIR_H__

char* make_tempdir();
char* make_tempdir(void);

#endif /* __CRONUTILS_TEMPDIR_H__ */

0 comments on commit 74c915d

Please sign in to comment.