From: Dale Weiler Date: Sat, 24 Nov 2012 20:33:03 +0000 (+0000) Subject: Whitespace X-Git-Tag: 0.1.9~289 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f454a9f9cd082e81657bea2a860332e5a1ffedf2;p=xonotic%2Fgmqcc.git Whitespace --- diff --git a/code.c b/code.c index 372e7eb..31be085 100644 --- a/code.c +++ b/code.c @@ -169,7 +169,7 @@ bool code_write(const char *filename) { } /* ensure all data is in LE format */ - util_endianswap(&code_header, 1, sizeof(prog_header)); + util_endianswap(&code_header, 1, sizeof(prog_header)); util_endianswap(code_statements, vec_size(code_statements), sizeof(prog_section_statement)); util_endianswap(code_defs, vec_size(code_defs), sizeof(prog_section_def)); util_endianswap(code_fields, vec_size(code_fields), sizeof(prog_section_field)); @@ -180,13 +180,13 @@ bool code_write(const char *filename) { if (!fp) return false; - if (1 != fwrite(&code_header, sizeof(prog_header), 1, fp) || + if (1 != fwrite(&code_header, sizeof(prog_header) , 1 , fp) || vec_size(code_statements) != fwrite(code_statements, sizeof(prog_section_statement), vec_size(code_statements), fp) || vec_size(code_defs) != fwrite(code_defs, sizeof(prog_section_def) , vec_size(code_defs) , fp) || vec_size(code_fields) != fwrite(code_fields, sizeof(prog_section_field) , vec_size(code_fields) , fp) || vec_size(code_functions) != fwrite(code_functions, sizeof(prog_section_function) , vec_size(code_functions) , fp) || vec_size(code_globals) != fwrite(code_globals, sizeof(int32_t) , vec_size(code_globals) , fp) || - vec_size(code_chars) != fwrite(code_chars, 1 , vec_size(code_chars) , fp)) + vec_size(code_chars) != fwrite(code_chars, 1 , vec_size(code_chars) , fp)) { fclose(fp); return false;