Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
24aa0417
Kaydet (Commit)
24aa0417
authored
Agu 31, 2013
tarafından
Charles-François Natali
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX and
already appears without #ifdef a couple lines above).
üst
fcfb324e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
socketmodule.c
Modules/socketmodule.c
+1
-1
No files found.
Modules/socketmodule.c
Dosyayı görüntüle @
24aa0417
...
@@ -4940,7 +4940,7 @@ socket_inet_aton(PyObject *self, PyObject *args)
...
@@ -4940,7 +4940,7 @@ socket_inet_aton(PyObject *self, PyObject *args)
/* special-case this address as inet_addr might return INADDR_NONE
/* special-case this address as inet_addr might return INADDR_NONE
* for this */
* for this */
if
(
strcmp
(
ip_addr
,
"255.255.255.255"
)
==
0
)
{
if
(
strcmp
(
ip_addr
,
"255.255.255.255"
)
==
0
)
{
packed_addr
=
0xFFFFFFFF
;
packed_addr
=
INADDR_BROADCAST
;
}
else
{
}
else
{
packed_addr
=
inet_addr
(
ip_addr
);
packed_addr
=
inet_addr
(
ip_addr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment