diff Modules/socketmodule.c @ 1313:6ee380349c84 legacy-trunk

* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c. Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
author Guido van Rossum <guido@python.org>
date Thu, 17 Jun 1993 12:35:49 +0000
parents 4773d5c3b5a4
children c914b10bf2ed
line wrap: on
line diff
--- a/Modules/socketmodule.c	Mon Jun 14 08:47:54 1993 +0000
+++ b/Modules/socketmodule.c	Thu Jun 17 12:35:49 1993 +0000
@@ -744,9 +744,9 @@
 	char *buf;
 	int len, n, flags;
 	flags = 0;
-	if (!getargs(args, "(s#)", &buf, &len)) {
+	if (!getargs(args, "s#", &buf, &len)) {
 		err_clear();
-		if (!getargs(args, "s#", &buf, &len, &flags))
+		if (!getargs(args, "(s#i)", &buf, &len, &flags))
 			return NULL;
 	}
 	BGN_SAVE