[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.153,1.154

Guido van Rossum guido@digicool.com
Sun, 22 Jul 2001 22:25:21 -0400


> Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family.

Much better.  Now, I get these warnings:

building '_socket' extension
gcc -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/guido/python/dist/src/./Include -I/usr/local/include -IInclude/ -c /home/guido/python/dist/src/Modules/socketmodule.c -o build/temp.linux-i686-2.2/socketmodule.o
/home/guido/python/dist/src/Modules/socketmodule.c: In function `gethost_common':
/home/guido/python/dist/src/Modules/socketmodule.c:1793: warning: function declaration isn't a prototype
gcc -shared build/temp.linux-i686-2.2/socketmodule.o -L/usr/local/lib -o build/lib.linux-i686-2.2/_socket.so

--Guido van Rossum (home page: http://www.python.org/~guido/)