X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsymbian%2Fsilcsymbianutil.cpp;h=691ec677d4f4b386bd9a01ea625c3fc5dbbc1c08;hp=270b14ff5476b2c6e23d4f07fcc9ebf7ec27b98b;hb=196824372226561334cd638d6471267cbffb354c;hpb=b7339a06000ae918f43b1b6064a17d064c6d9b87 diff --git a/lib/silcutil/symbian/silcsymbianutil.cpp b/lib/silcutil/symbian/silcsymbianutil.cpp index 270b14ff..691ec677 100644 --- a/lib/silcutil/symbian/silcsymbianutil.cpp +++ b/lib/silcutil/symbian/silcsymbianutil.cpp @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2006 Pekka Riikonen + Copyright (C) 2006 - 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,6 +27,7 @@ extern "C" { char *silc_get_username() { +#if 0 char *logname = NULL; logname = getlogin(); @@ -41,12 +42,16 @@ char *silc_get_username() } return strdup(logname); +#else + return strdup("Symbian"); +#endif /* 0 */ } /* Returns the real name of ther user. */ char *silc_get_real_name() { +#if 0 char *realname = NULL; struct passwd *pw; @@ -63,6 +68,9 @@ char *silc_get_real_name() realname = strdup(pw->pw_gecos); return realname; +#else + return strdup("Lastname"); +#endif /* 0 */ } /* Return current time to struct timeval. */ @@ -84,7 +92,8 @@ void silc_symbian_usleep(long microseconds) void silc_symbian_debug(const char *function, int line, char *string) { - RDebug::Print(_L("%s:%d: %s"), function, line, string); + fprintf(stderr, "%s:%d: %s\n", function, line, string); + // RDebug::Print(_L("%s:%d: %s"), function, line, string); } } /* extern "C" */