Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/username.cpp

    r2 r39  
    11#ifdef __WATCOMC__
    2 char *get_username() { return "DOS user"; }
     2char const *get_username() { return "DOS user"; }
    33#elif (defined(__APPLE__) && !defined(__MACH__))
    4 char *get_username() { return "Mac user"; }
     4char const *get_username() { return "Mac user"; }
    55#else
    66 
     
    1010#include        <unistd.h>
    1111
    12 char *get_username()
     12char const *get_username()
    1313{
    14   struct passwd         *pw;
    15   char                  *name;
     14  struct passwd *pw;
     15  char const *name;
    1616
    1717  if (!(name = getlogin()))
Note: See TracChangeset for help on using the changeset viewer.