open-isns: Fix warnings reported by gcc-4.5.2
[open-iscsi.git] / usr / statics.c
blob59fb044d3f6886968f9a0a35db054e1c936ec015
1 #include <unistd.h>
2 #include <pwd.h>
3 #include <sys/errno.h>
4 #include <sys/types.h>
6 static struct passwd root_pw = {
7 .pw_name = "root",
8 };
10 struct passwd*
11 getpwuid(uid_t uid)
13 if (uid == 0)
14 return &root_pw;
15 else {
16 errno = ENOENT;
17 return 0;