Skip to content

Commit 121375e

Browse files
committed
Parameters were added to the main function. However, still unused.
1 parent e7674c0 commit 121375e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

suid_locate.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ static void scan_suid_by_dir(const char * path) {
174174
* Name: main
175175
* Description: Main function of the program
176176
*******************************************************************/
177-
int main() {
177+
int main(int argc, char * argv[]) {
178+
UNUSED(argc);
179+
UNUSED(argv);
180+
178181
fprintf(stdout, "[*] suid-locate (Kfiros 2015) \n");
179182
fprintf(stdout, "[*] Searching for SUID/SGID files in your system... \n");
180183

suid_locate.h

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ typedef enum {
4646
#define UPPER_FOLDER_STRING ("..")
4747
#define UPPER_FOLDER_LENGTH (2)
4848

49+
#define UNUSED(expr) do { (void)(expr); } while (false)
50+
4951
/*******************************************************************
5052
* Prototypes
5153
*******************************************************************/

0 commit comments

Comments
 (0)