| Index: host/lib/file_keys.c
|
| diff --git a/host/lib/file_keys.c b/host/lib/file_keys.c
|
| index 181879da6801d8078c09529380d01bb13835f706..0c57dff82bf1b46048951b60007059d2418e31bf 100644
|
| --- a/host/lib/file_keys.c
|
| +++ b/host/lib/file_keys.c
|
| @@ -82,7 +82,7 @@ uint8_t* DigestFile(char* input_file, int sig_algorithm) {
|
| }
|
|
|
| uint8_t* SignatureFile(const char* input_file, const char* key_file,
|
| - int algorithm) {
|
| + unsigned int algorithm) {
|
| char* sign_utility = "./sign_data.sh";
|
| char* cmd; /* Command line to invoke. */
|
| int cmd_len;
|
| @@ -99,7 +99,7 @@ uint8_t* SignatureFile(const char* input_file, const char* key_file,
|
| strlen(input_file) +
|
| 1); /* For the trailing '\0'. */
|
| cmd = (char*) Malloc(cmd_len);
|
| - snprintf(cmd, cmd_len, "%s %d %s %s", sign_utility, algorithm, key_file,
|
| + snprintf(cmd, cmd_len, "%s %u %s %s", sign_utility, algorithm, key_file,
|
| input_file);
|
| cmd_out = popen(cmd, "r");
|
| Free(cmd);
|
|
|