Skip to content
Snippets Groups Projects
Commit e42b87f5 authored by Per Hedbor's avatar Per Hedbor
Browse files

Removed some duplicated local variables

Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.8
Rev: lib/modules/Protocols.pmod/LDAP.pmod/ldap_privates.pmod:1.4
Rev: lib/modules/Standards.pmod/ASN1.pmod/Decode.pmod:1.9
parent b7a42b5d
No related branches found
No related tags found
No related merge requests found
...@@ -574,7 +574,7 @@ class Runtime_timezone_compiler ...@@ -574,7 +574,7 @@ class Runtime_timezone_compiler
array sr=({}); array sr=({});
int y,mn=min(@indices(rules-(<NUL_YEAR>))); int mn=min(@indices(rules-(<NUL_YEAR>)));
for (y=INF_YEAR;sizeof(r2);y--) for (y=INF_YEAR;sizeof(r2);y--)
if (r2[y]) if (r2[y])
...@@ -710,7 +710,7 @@ class Runtime_timezone_compiler ...@@ -710,7 +710,7 @@ class Runtime_timezone_compiler
if (sizeof(a)<4) if (sizeof(a)<4)
complain("parse error\n"); complain("parse error\n");
array a=({parse_offset(a[0]), // offset a=({parse_offset(a[0]), // offset
a[1], // rule or added offset a[1], // rule or added offset
a[2], // string a[2], // string
a[3], a[3],
......
// LDAP client protocol implementation for Pike. // LDAP client protocol implementation for Pike.
// //
// $Id: ldap_privates.pmod,v 1.3 1999/08/25 05:04:32 hubbe Exp $ // $Id: ldap_privates.pmod,v 1.4 2000/09/05 15:06:09 per Exp $
// //
// Honza Petrous, hop@unibase.cz // Honza Petrous, hop@unibase.cz
// //
...@@ -174,7 +174,7 @@ object|mapping der_decode(object data, mapping types) ...@@ -174,7 +174,7 @@ object|mapping der_decode(object data, mapping types)
if ( (raw_tag & 0x1f) == 0x1f) if ( (raw_tag & 0x1f) == 0x1f)
error("ASN1.Decode: High tag numbers is not supported\n"); error("ASN1.Decode: High tag numbers is not supported\n");
int len = data->get_uint(1); len = data->get_uint(1);
if (len & 0x80) if (len & 0x80)
len = data->get_uint(len & 0x7f); len = data->get_uint(len & 0x7f);
......
...@@ -78,7 +78,7 @@ object|mapping der_decode(object data, mapping types) ...@@ -78,7 +78,7 @@ object|mapping der_decode(object data, mapping types)
if ( (raw_tag & 0x1f) == 0x1f) if ( (raw_tag & 0x1f) == 0x1f)
error("ASN1.Decode: High tag numbers is not supported\n"); error("ASN1.Decode: High tag numbers is not supported\n");
int len = data->get_uint(1); len = data->get_uint(1);
if (len & 0x80) if (len & 0x80)
len = data->get_uint(len & 0x7f); len = data->get_uint(len & 0x7f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment