Mercurial > hg > toybox
comparison lib/password.c @ 1551:1264029d7989 draft
Remove unnecessary assignment spotted by Cynt Rynt.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 11 Nov 2014 15:08:25 -0600 |
parents | cf77c4939385 |
children | 10922d83392a |
comparison
equal
deleted
inserted
replaced
1550:2997847aa299 | 1551:1264029d7989 |
---|---|
154 perror_msg("Couldn't open file %s",filename); | 154 perror_msg("Couldn't open file %s",filename); |
155 goto free_storage; | 155 goto free_storage; |
156 } | 156 } |
157 | 157 |
158 *sfx = '-'; | 158 *sfx = '-'; |
159 ret = unlink(filenamesfx); | 159 unlink(filenamesfx); |
160 ret = link(filename, filenamesfx); | 160 ret = link(filename, filenamesfx); |
161 if (ret < 0) error_msg("can't create backup file"); | 161 if (ret < 0) error_msg("can't create backup file"); |
162 | 162 |
163 *sfx = '+'; | 163 *sfx = '+'; |
164 lock.l_type = F_WRLCK; | 164 lock.l_type = F_WRLCK; |