Exit with EXIT_SUCCESS/EXIT_FAILURE instead of 0 and 1
Fixed for consistency purposes.
This commit is contained in:
		
							
								
								
									
										3
									
								
								chgrp.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								chgrp.c
									
									
									
									
									
								
							@@ -1,4 +1,5 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <ftw.h>
 | 
			
		||||
@@ -55,7 +56,7 @@ main(int argc, char **argv)
 | 
			
		||||
		while(*++argv)
 | 
			
		||||
			ftw(*argv, chgrp, FOPEN_MAX);
 | 
			
		||||
 | 
			
		||||
		return 0;
 | 
			
		||||
		return EXIT_SUCCESS;
 | 
			
		||||
	}
 | 
			
		||||
	while(*++argv) {
 | 
			
		||||
		if(stat(*argv, &st) == -1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user