Adjust to ObjFW changes
This commit is contained in:
parent
5231f5d504
commit
7f15e8bb72
2 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
all:
|
all:
|
||||||
@objfw-compile -o scrypt-pwgen *.m
|
@objfw-compile -Werror -o scrypt-pwgen *.m
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *~ scrypt-pwgen
|
rm -f *.o *~ scrypt-pwgen
|
||||||
|
|
|
@ -117,10 +117,10 @@ showHelp(OFStream *output, bool verbose)
|
||||||
|
|
||||||
@try {
|
@try {
|
||||||
generator.length = (size_t)[lengthStr decimalValue];
|
generator.length = (size_t)[lengthStr decimalValue];
|
||||||
} @catch (OFInvalidArgumentException *e) {
|
|
||||||
invalid = true;
|
|
||||||
} @catch (OFInvalidFormatException *e) {
|
} @catch (OFInvalidFormatException *e) {
|
||||||
invalid = true;
|
invalid = true;
|
||||||
|
} @catch (OFOutOfRangeException *e) {
|
||||||
|
invalid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (invalid) {
|
if (invalid) {
|
||||||
|
@ -136,7 +136,7 @@ showHelp(OFStream *output, bool verbose)
|
||||||
prompt = [OFString stringWithFormat: @"Passphrase for site \"%@\": ",
|
prompt = [OFString stringWithFormat: @"Passphrase for site \"%@\": ",
|
||||||
generator.site];
|
generator.site];
|
||||||
passphrase = getpass(
|
passphrase = getpass(
|
||||||
[prompt cStringWithEncoding: [OFSystemInfo native8BitEncoding]]);
|
[prompt cStringWithEncoding: [OFLocalization encoding]]);
|
||||||
@try {
|
@try {
|
||||||
if (_repeat) {
|
if (_repeat) {
|
||||||
char *passphraseCopy = of_strdup(passphrase);
|
char *passphraseCopy = of_strdup(passphrase);
|
||||||
|
@ -146,7 +146,7 @@ showHelp(OFStream *output, bool verbose)
|
||||||
|
|
||||||
@try {
|
@try {
|
||||||
of_string_encoding_t encoding =
|
of_string_encoding_t encoding =
|
||||||
[OFSystemInfo native8BitEncoding];
|
[OFLocalization encoding];
|
||||||
|
|
||||||
prompt = [OFString stringWithFormat:
|
prompt = [OFString stringWithFormat:
|
||||||
@"Repeat passphrase for site \"%@\": ",
|
@"Repeat passphrase for site \"%@\": ",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue