Permalink
Browse files

formatting

  • Loading branch information...
1 parent a41dfe8 commit e8af51b370f3c7b71b2807930a03f25a392672e7 @wlangstroth committed Apr 25, 2012
Showing with 6 additions and 5 deletions.
  1. +0 −1 TODO
  2. +6 −4 main.c
View
1 TODO
@@ -1,5 +1,4 @@
* Batch export to Harvest (harvestapp.com)
sqlite3 ~/.tardis.db ".dump entries" | grep '^INSERT'
-* Move modes to their own files
* Estimates on project tasks, with corresponding links
* Truncate and ellipsify project/description text in report
View
10 main.c
@@ -16,26 +16,28 @@
#include "tardis.h"
+// SQLite Callbacks
static int report_row(void *, int, char **, char **);
static int all_row(void *, int, char **, char **);
static int sink(void *, int, char **, char **);
+
int
main(int argc, char *argv[])
{
sqlite3 *db;
- char *error_message = 0;
int result_code;
+ time_t rawtime;
+ char *error_message = 0;
char update_sql[BUFFER_LENGTH];
char insert_sql[BUFFER_LENGTH];
char add_sql[BUFFER_LENGTH];
char date_buffer[DATE_LENGTH];
char home_db[BUFFER_LENGTH];
- time_t rawtime;
+ char *project;
+ char *description;
struct tm *timeinfo;
static char *time_format = "%Y-%m-%d %H:%M:%S";
- char *project;
- char *description;
int result = EXIT_FAILURE; // guilty until proven innocent
const char *insert_template =

0 comments on commit e8af51b

Please sign in to comment.