aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqorg11 <qorg@vxempire.xyz>2020-12-26 04:06:34 +0100
committerqorg11 <qorg@vxempire.xyz>2020-12-26 04:06:34 +0100
commit1edc320acd39afa98396b9940741ca2de4940061 (patch)
tree4dc6bf98897ae10dbe4ef91d92737c7f976deebd
parentd716f2936bd00c1b23ff69eada519f157ad3a9cc (diff)
downloadk9core-1edc320acd39afa98396b9940741ca2de4940061.tar.gz
k9core-1edc320acd39afa98396b9940741ca2de4940061.tar.bz2
k9core-1edc320acd39afa98396b9940741ca2de4940061.tar.zst
fix indentation in date
-rw-r--r--src/date.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/date.c b/src/date.c
index 999f2a6..663b60b 100644
--- a/src/date.c
+++ b/src/date.c
@@ -7,34 +7,34 @@
int
main(int argc,char *argv[])
{
- int c;
- int u = 0;
- char buffer[256];
- time_t now;
- now = time(NULL);
- char FORMAT[256] = "%c";
- struct tm *timeinfo;
+ int c;
+ int u = 0;
+ char buffer[256];
+ time_t now;
+ now = time(NULL);
+ char FORMAT[256] = "%c";
+ struct tm *timeinfo;
- while((c = getopt(argc,argv,"u")) != -1)
- {
- switch(c)
- {
- case 'u': u = 1; break;
- }
- }
+ while((c = getopt(argc,argv,"u")) != -1)
+ {
+ switch(c)
+ {
+ case 'u': u = 1; break;
+ }
+ }
- timeinfo = localtime(&now);
+ timeinfo = localtime(&now);
- if(u)
- timeinfo = gmtime(&now);
+ if(u)
+ timeinfo = gmtime(&now);
- if(argc > optind && argv[optind][0] == '+')
- {
- argv[optind]++;
- strcpy(FORMAT,argv[optind]);
- }
+ if(argc > optind && argv[optind][0] == '+')
+ {
+ argv[optind]++;
+ strcpy(FORMAT,argv[optind]);
+ }
- strftime(buffer,256,FORMAT,timeinfo);
- puts(buffer);
- return 0;
+ strftime(buffer,256,FORMAT,timeinfo);
+ puts(buffer);
+ return 0;
}