Commit b70c822b authored by Barry Warsaw's avatar Barry Warsaw

Formatting, and minor error detection

parent 7249c6cd
...@@ -239,8 +239,9 @@ time_strftime(self, args) ...@@ -239,8 +239,9 @@ time_strftime(self, args)
buf.tm_mon--; buf.tm_mon--;
buf.tm_wday = (buf.tm_wday + 1) % 7; buf.tm_wday = (buf.tm_wday + 1) % 7;
buf.tm_yday--; buf.tm_yday--;
/* I hate these functions that presume you know how big the output */ /* I hate these functions that presume you know how big the output
/* will be ahead of time... */ * will be ahead of time...
*/
for (i = 1024 ; i < 8192 ; i += 1024) { for (i = 1024 ; i < 8192 ; i += 1024) {
outbuf = malloc(i); outbuf = malloc(i);
if (outbuf == NULL) { if (outbuf == NULL) {
...@@ -386,6 +387,8 @@ inittime() ...@@ -386,6 +387,8 @@ inittime()
} }
#endif /* HAVE_TM_ZONE */ #endif /* HAVE_TM_ZONE */
#endif /* !HAVE_TZNAME */ #endif /* !HAVE_TZNAME */
if (PyErr_Occurred())
Py_FatalError("Can't initialize time module");
} }
...@@ -436,7 +439,7 @@ static int ...@@ -436,7 +439,7 @@ static int
#ifdef MPW #ifdef MPW
floatsleep(double secs) floatsleep(double secs)
#else #else
floatsleep(secs) floatsleep(secs)
double secs; double secs;
#endif /* MPW */ #endif /* MPW */
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment