summaryrefslogtreecommitdiff
path: root/cydo.cpp
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 21:19:10 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 21:19:10 -0700
commit28398e3448af0428f93b3f4035bb0c3c95ee8263 (patch)
treea88d4a428cd28dc21857d94be1a02c1556e358a5 /cydo.cpp
parent54ab55b87f9129679c16206c93c1a2cb60b94b79 (diff)
I am trying to get the habit of always using auto.
Diffstat (limited to 'cydo.cpp')
-rw-r--r--cydo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cydo.cpp b/cydo.cpp
index 84d7357..6fcde15 100644
--- a/cydo.cpp
+++ b/cydo.cpp
@@ -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)