diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 21:19:10 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 21:19:10 -0700 |
commit | 28398e3448af0428f93b3f4035bb0c3c95ee8263 (patch) | |
tree | a88d4a428cd28dc21857d94be1a02c1556e358a5 /cydo.cpp | |
parent | 54ab55b87f9129679c16206c93c1a2cb60b94b79 (diff) |
I am trying to get the habit of always using auto.
Diffstat (limited to 'cydo.cpp')
-rw-r--r-- | cydo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ void launch_data_dict_iterate(launch_data_t data, LaunchDataIterator code) { } int main(int argc, char *argv[]) { - FILE *log(fopen("/tmp/cydia.log", "a+")); + auto log(fopen("/tmp/cydia.log", "a+")); fprintf(log, "cydo:"); for (int arg(1); arg < argc; ++arg) fprintf(log, " %s", argv[arg]); @@ -52,9 +52,9 @@ int main(int argc, char *argv[]) { _assert(response != NULL); _assert(launch_data_get_type(response) == LAUNCH_DATA_DICTIONARY); - int parent(getppid()); + auto parent(getppid()); - bool cydia(false); + auto cydia(false); launch_data_dict_iterate(response, [=, &cydia](const char *name, launch_data_t value) { if (launch_data_get_type(response) != LAUNCH_DATA_DICTIONARY) |