diff options
| -rw-r--r-- | examples/example-decode.c | 4 | ||||
| -rw-r--r-- | examples/example-encode.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/example-decode.c b/examples/example-decode.c index e16631c..ebfb19a 100644 --- a/examples/example-decode.c +++ b/examples/example-decode.c | |||
| @@ -87,7 +87,7 @@ main( | |||
| 87 | 87 | ||
| 88 | for(i = 1; (i < argc); i++) | 88 | for(i = 1; (i < argc); i++) |
| 89 | { | 89 | { |
| 90 | if ((rc = bindle_encoding_verify(BNDL_BASE32, argv[i], strlen(argv[i]))) == -1) | 90 | if (bindle_encoding_verify(BNDL_BASE32, argv[i], strlen(argv[i])) == -1) |
| 91 | { | 91 | { |
| 92 | fprintf(stderr, "bindle_encoding_verify(): %s\n", strerror(errno)); | 92 | fprintf(stderr, "bindle_encoding_verify(): %s\n", strerror(errno)); |
| 93 | return(1); | 93 | return(1); |
| @@ -102,7 +102,7 @@ main( | |||
| 102 | fprintf(stderr, "error: buffer is too small for decoded string\n"); | 102 | fprintf(stderr, "error: buffer is too small for decoded string\n"); |
| 103 | return(1); | 103 | return(1); |
| 104 | }; | 104 | }; |
| 105 | if ((rc = bindle_decode(BNDL_BASE32, buff, sizeof(buff), argv[i], strlen(argv[i]))) == -1) | 105 | if (bindle_decode(BNDL_BASE32, buff, sizeof(buff), argv[i], strlen(argv[i])) == -1) |
| 106 | { | 106 | { |
| 107 | fprintf(stderr, "bindle_decode(): %s\n", strerror(errno)); | 107 | fprintf(stderr, "bindle_decode(): %s\n", strerror(errno)); |
| 108 | return(1); | 108 | return(1); |
diff --git a/examples/example-encode.c b/examples/example-encode.c index 21540ce..6cf793d 100644 --- a/examples/example-encode.c +++ b/examples/example-encode.c | |||
| @@ -97,7 +97,7 @@ main( | |||
| 97 | fprintf(stderr, "error: buffer is too small for encoded string\n"); | 97 | fprintf(stderr, "error: buffer is too small for encoded string\n"); |
| 98 | return(1); | 98 | return(1); |
| 99 | }; | 99 | }; |
| 100 | if ((rc = bindle_encode(BNDL_BASE32, buff, sizeof(buff), argv[i], strlen(argv[i]), 0)) == -1) | 100 | if (bindle_encode(BNDL_BASE32, buff, sizeof(buff), argv[i], strlen(argv[i]), 0) == -1) |
| 101 | { | 101 | { |
| 102 | fprintf(stderr, "bindle_encode(): %s\n", strerror(errno)); | 102 | fprintf(stderr, "bindle_encode(): %s\n", strerror(errno)); |
| 103 | return(1); | 103 | return(1); |
