summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-05-07 00:39:51 +0000
committerJeremy Katz <katzj@redhat.com>2004-05-07 00:39:51 +0000
commit536c566c02d4479f0ef92f5e549e14fbc28171ca (patch)
tree2d6e73eb3170d70b6ecb8e18bffa31cc4a105a54 /isys/isys.py
parent5e6b89ef9e33beca2e6c70dc351e033e61285d09 (diff)
downloadanaconda-536c566c02d4479f0ef92f5e549e14fbc28171ca.tar.gz
anaconda-536c566c02d4479f0ef92f5e549e14fbc28171ca.tar.xz
anaconda-536c566c02d4479f0ef92f5e549e14fbc28171ca.zip
more warning fixes (#122498)
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 72d99e3a9..7532490f8 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -371,18 +371,18 @@ def mknod(pathname, mode, dev):
return _isys.mknod(pathname, mode, dev)
def inet_ntoa (addr):
- return "%d.%d.%d.%d" % ((addr >> 24) & 0x000000ff,
- (addr >> 16) & 0x000000ff,
- (addr >> 8) & 0x000000ff,
- addr & 0x000000ff)
+ return "%d.%d.%d.%d" % ((addr >> 24) & 0x000000ffL,
+ (addr >> 16) & 0x000000ffL,
+ (addr >> 8) & 0x000000ffL,
+ addr & 0x000000ffL)
def inet_aton (addr):
quad = string.splitfields (addr, ".")
try:
- rc = ((string.atoi (quad[0]) << 24) +
- (string.atoi (quad[1]) << 16) +
- (string.atoi (quad[2]) << 8) +
- string.atoi (quad[3]))
+ rc = ((long (quad[0]) << 24) +
+ (long (quad[1]) << 16) +
+ (long (quad[2]) << 8) +
+ long (quad[3]))
except IndexError:
raise ValueError
return rc