[Pkg-jed-commit] [SCM] Debian packaging of JED branch, upstream-fixes, updated. 456f22085fafbdc310fed2c33a99d3d5c7476d36
Jörg Sommer
joerg at alea.gnuu.de
Thu Nov 19 13:01:20 UTC 2009
The following commit has been merged in the upstream-fixes branch:
commit 456f22085fafbdc310fed2c33a99d3d5c7476d36
Author: Jörg Sommer <joerg at alea.gnuu.de>
Date: Sat Dec 6 01:15:15 2008 +0100
Use special function to set user info
Small code refactoring: Use the specialized functions to set the user
information instead of changing the raw data structures.
diff --git a/src/userinfo.c b/src/userinfo.c
index 2442e15..8f62b64 100644
--- a/src/userinfo.c
+++ b/src/userinfo.c
@@ -319,7 +319,7 @@ static int get_username_info (void)
&& ((name = getenv("LOGNAME")) == NULL))
name = "unknown";
- if (-1 == set_user_info (&User_Info.username, name))
+ if (-1 == set_username (name))
return -1;
name = getenv ("NAME");
@@ -332,7 +332,7 @@ static int get_username_info (void)
if (name == NULL)
name = "";
- if (-1 == set_user_info (&User_Info.realname, name))
+ if (-1 == set_realname (name))
return -1;
return 0;
--
Debian packaging of JED
More information about the Pkg-jed-commit
mailing list