shithub: mc

Download patch

ref: e93384f50f44d026b978b363eb107b14efeef3a1
parent: 9fa7e376e33410e78fda13897bf8e0914f201ddf
author: Ori Bernstein <ori@eigenstate.org>
date: Sun May 17 12:39:58 EDT 2015

Fix missed 'fatal()' calls.

--- a/libbio/bio.myr
+++ b/libbio/bio.myr
@@ -109,7 +109,7 @@
 	| Rd:	-> std.Ordonly
 	| Wr:	-> std.Owronly
 	| Rw:	-> std.Ordwr
-	| _:	std.fatal(1, "bio: bad file mode")
+	| _:	std.fatal("bio: bad file mode")
 	;;
 	-> 0
 }
--- a/libregex/redump.myr
+++ b/libregex/redump.myr
@@ -13,7 +13,7 @@
 	cmd = std.optparse(args, &opts)
 	match regex.dbgcompile(cmd.args[0])
 	| `std.Fail m:	
-		std.fatal(1, "unable to compile regex: %s\n", regex.failmsg(m))
+		std.fatal("unable to compile regex: %s\n", regex.failmsg(m))
 	| `std.Ok re:
 		if cmd.args.len > 1
 			runall(re, cmd.args)
@@ -33,7 +33,7 @@
 			dump(re, fd)
 			bio.close(fd)
 		| `std.None:
-			std.fatal(1, "failed to open %s\n", f)
+			std.fatal("failed to open %s\n", f)
 		;;
 	;;
 }