mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Minor stylistic code changes to compress and image packages
This commit is contained in:
@@ -34,7 +34,7 @@ main :: proc() {
|
||||
|
||||
if len(args) < 2 {
|
||||
stderr("No input file specified.\n");
|
||||
err := gzip.load(&TEST, &buf);
|
||||
err := gzip.load(TEST, &buf);
|
||||
if gzip.is_kind(err, gzip.E_General.OK) {
|
||||
stdout("Displaying test vector: ");
|
||||
stdout(bytes.buffer_to_string(&buf));
|
||||
@@ -50,7 +50,7 @@ main :: proc() {
|
||||
if file == "-" {
|
||||
// Read from stdin
|
||||
s := os.stream_from_handle(os.stdin);
|
||||
err = gzip.load(&s, &buf);
|
||||
err = gzip.load(s, &buf);
|
||||
} else {
|
||||
err = gzip.load(file, &buf);
|
||||
}
|
||||
@@ -67,4 +67,4 @@ main :: proc() {
|
||||
stdout(bytes.buffer_to_string(&buf));
|
||||
}
|
||||
os.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user