diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 04:35:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 05:01:39 -0400 |
commit | 588f2ef2f51d7bdf209820bfb244034863601939 (patch) | |
tree | 7a473de7c117bf71bb802398823826ca4dfbfdca /src/option.cc | |
parent | dc66840dd745863c06ad6513f9f66d589bcc29d8 (diff) | |
download | fork-ledger-588f2ef2f51d7bdf209820bfb244034863601939.tar.gz fork-ledger-588f2ef2f51d7bdf209820bfb244034863601939.tar.bz2 fork-ledger-588f2ef2f51d7bdf209820bfb244034863601939.zip |
Fixed many compiler warnings from g++ 4.4
Diffstat (limited to 'src/option.cc')
-rw-r--r-- | src/option.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.cc b/src/option.cc index 1275e270..f47410e2 100644 --- a/src/option.cc +++ b/src/option.cc @@ -110,8 +110,8 @@ void process_option(const string& whence, const string& name, scope_t& scope, void process_environment(const char ** envp, const string& tag, scope_t& scope) { - const char * tag_p = tag.c_str(); - std::size_t tag_len = tag.length(); + const char * tag_p = tag.c_str(); + string::size_type tag_len = tag.length(); for (const char ** p = envp; *p; p++) { if (! tag_p || std::strncmp(*p, tag_p, tag_len) == 0) { |