Changeset 582 for branches/0.6-stable


Ignore:
Timestamp:
Apr 10, 2008, 10:23:24 PM (13 years ago)
Author:
Jari Häkkinen
Message:

changed u_int to unsigned int

Location:
branches/0.6-stable
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/0.6-stable/lib/Date.cc

    r430 r582  
    6969    struct tm* last = std::gmtime(&t1);
    7070
    71     u_int year=0;
     71    unsigned int year=0;
    7272    while (t0<=t1) {
    7373      ++year;
     
    8585    }
    8686
    87     u_int month=0;
     87    unsigned int month=0;
    8888    while (t0<=t1) {
    8989      ++month;
     
    102102   
    103103
    104     u_int day = (t1-t0)/24/60/60;
     104    unsigned int day = (t1-t0)/24/60/60;
    105105    ss << day << " day";
    106106    if (day!=1)
     
    117117    struct tm* timeinfo = std::localtime(&time_);
    118118
    119     u_int year, month, day, hour, minute, second;
     119    unsigned int year, month, day, hour, minute, second;
    120120    std::string tmp;
    121121    std::getline(sstream,tmp,'-');
  • branches/0.6-stable/lib/GnuplotFE.cc

    r489 r582  
    3838
    3939
    40   void GnuplotFE::plot(std::vector<u_int>& y, const std::string& format)
     40  void GnuplotFE::plot(std::vector<unsigned int>& y, const std::string& format)
    4141  {
    4242    if (!date_.empty()) {
     
    5858
    5959
    60   void GnuplotFE::replot(std::vector<u_int>& y)
     60  void GnuplotFE::replot(std::vector<unsigned int>& y)
    6161  {
    6262    if (!date_.empty()) {
  • branches/0.6-stable/lib/GnuplotFE.h

    r430 r582  
    7979    /// shorter than \a y vector.
    8080    ///
    81     void plot(std::vector<u_int>& y,const std::string& format="%y-%b");
     81    void plot(std::vector<unsigned int>& y,const std::string& format="%y-%b");
    8282
    8383    ///
     
    8686    /// axis data and possible modifications of \a y.
    8787    ///
    88     void replot(std::vector<u_int>& y);
     88    void replot(std::vector<unsigned int>& y);
    8989
    9090    ///
  • branches/0.6-stable/lib/html_utility.h

    r430 r582  
    4343  ///
    4444  std::string anchor(const std::string& url,
    45                      const std::string& name, u_int level=0,
     45                     const std::string& name, unsigned int level=0,
    4646                     const std::string& title="");
    4747
     
    5858  /// \param level
    5959  /// \param
    60   void print_header(std::ostream& os, std::string name, u_int level,
     60  void print_header(std::ostream& os, std::string name, unsigned int level,
    6161                    std::string user, std::string item, std::string path);
    6262
  • branches/0.6-stable/lib/utility.h

    r478 r582  
    7878  /// @return x in hexadecimal base
    7979  ///
    80   std::string hex(int x, u_int width=0);
     80  std::string hex(int x, unsigned int width=0);
    8181
    8282  ///
  • branches/0.6-stable/test/utility_test.cc

    r429 r582  
    2727#include <string>
    2828
    29 bool test_hex(int, u_int, std::string);
     29bool test_hex(int, unsigned int, std::string);
    3030
    3131int main(const int argc,const char* argv[])
     
    4242}
    4343
    44 bool test_hex(int x, u_int w, std::string facit)
     44bool test_hex(int x, unsigned int w, std::string facit)
    4545{
    4646  if (theplu::svndigest::hex(x,w)==facit)
Note: See TracChangeset for help on using the changeset viewer.