Skip to contentSkip to conversation

fdisk: use EXIT_SUCCESS for -l option

PATCH Applied Davidlohr Bueso 1 participant 1 message Jun 3, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 fdisk: use EXIT_SUCCESS for -l option

From: Davidlohr Bueso <[email protected]>

---
 fdisk/fdisk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fdisk/fdisk.c +1 -1
index d8ef14f..baa5bad 100644
@@ -2122,7 +2122,7 @@ int main(int argc, char **argv)
 				print_partition_table_from_option(argv[k], sector_size);
 		} else
 			print_all_partition_table_from_option(sector_size);
-		exit(0);
+		exit(EXIT_SUCCESS);
 	}
 
 	if (opts) {
Signature · 1 line
1.7.4.1