comparison main.c @ 19:d078651f5353

Fix typo
author Daniel O'Connor <darius@dons.net.au>
date Wed, 14 Nov 2012 12:46:48 +1030
parents db6011aa94d6
children bd8e2cf04034
comparison
equal deleted inserted replaced
18:afdd22502c2a 19:d078651f5353
156 156
157 if (cmd.len > 0) { 157 if (cmd.len > 0) {
158 if (!strncmp("gc", cmd.buf, 2)) { 158 if (!strncmp("gc", cmd.buf, 2)) {
159 now = time(NULL); 159 now = time(NULL);
160 gmtime_r(&now, &nowtm); 160 gmtime_r(&now, &nowtm);
161 strftime(buf, sizeof(buf) - 1, "Time is %Y/%m/%d %H:%M:%S UTC", &nowtm); 161 strftime(buf, sizeof(buf) - 1, "%Y/%m/%d %H:%M:%S UTC", &nowtm);
162 printf("Time is %s (%d)\r\n", buf, (int)now); 162 printf("Time is %s (%d)\r\n", buf, (int)now);
163 } else if (!strncmp("sc ", cmd.buf, 3)) { 163 } else if (!strncmp("sc ", cmd.buf, 3)) {
164 struct timeval tv; 164 struct timeval tv;
165 tv.tv_sec = atoi(cmd.buf + 3); 165 tv.tv_sec = atoi(cmd.buf + 3);
166 tv.tv_usec = 0; 166 tv.tv_usec = 0;