This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
Immanuel
/
btpd
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
Print the result of, and not the address of, getpid().
master
Richard Nyberg
пре 16 година
родитељ
7ba163fe5a
комит
33f309c204
1 измењених фајлова
са
1 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
btpd/main.c
+ 1
- 1
btpd/main.c
Прегледај датотеку
@@ -19,7 +19,7 @@ writepid(int pidfd)
{
int nw;
char pidtxt[100];
nw = snprintf(pidtxt, sizeof(pidtxt), "%ld", (long)getpid);
nw = snprintf(pidtxt, sizeof(pidtxt), "%ld", (long)getpid
()
);
ftruncate(pidfd, 0);
write(pidfd, pidtxt, nw);
}
Write
Preview
Loading…
Откажи
Сачувај