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 merge requests found
......@@ -574,7 +574,7 @@ class Runtime_timezone_compiler
array sr=({});
int y,mn=min(@indices(rules-(<NUL_YEAR>)));
int mn=min(@indices(rules-(<NUL_YEAR>)));
for (y=INF_YEAR;sizeof(r2);y--)
if (r2[y])
......@@ -710,7 +710,7 @@ class Runtime_timezone_compiler
if (sizeof(a)<4)
complain("parse error\n");
array a=({parse_offset(a[0]), // offset
a=({parse_offset(a[0]), // offset
a[1], // rule or added offset
a[2], // string
a[3],
......
// 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
//
......@@ -174,7 +174,7 @@ object|mapping der_decode(object data, mapping types)
if ( (raw_tag & 0x1f) == 0x1f)
error("ASN1.Decode: High tag numbers is not supported\n");
int len = data->get_uint(1);
len = data->get_uint(1);
if (len & 0x80)
len = data->get_uint(len & 0x7f);
......
......@@ -78,7 +78,7 @@ object|mapping der_decode(object data, mapping types)
if ( (raw_tag & 0x1f) == 0x1f)
error("ASN1.Decode: High tag numbers is not supported\n");
int len = data->get_uint(1);
len = data->get_uint(1);
if (len & 0x80)
len = data->get_uint(len & 0x7f);
......@@ -173,4 +173,4 @@ object|mapping simple_der_decode(string data)
return der_decode(ADT.struct(data), universal_types);
}
#endif
\ No newline at end of file
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment