Mercurial > pidgin
comparison src/util.c @ 3806:b7a6aa99ee7c
[gaim-migrate @ 3949]
Damned sound. Thanks, Rob McQueen.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 26 Oct 2002 19:16:26 +0000 |
| parents | 9bcb42faccc0 |
| children | 43e396e94095 |
comparison
equal
deleted
inserted
replaced
| 3805:3c0bbaec90ed | 3806:b7a6aa99ee7c |
|---|---|
| 638 static char date[80]; | 638 static char date[80]; |
| 639 time_t tme; | 639 time_t tme; |
| 640 time(&tme); | 640 time(&tme); |
| 641 strftime(date, sizeof(date), "%H:%M:%S", localtime(&tme)); | 641 strftime(date, sizeof(date), "%H:%M:%S", localtime(&tme)); |
| 642 return date; | 642 return date; |
| 643 } | |
| 644 | |
| 645 void clean_pid(void) | |
| 646 { | |
| 647 #ifndef _WIN32 | |
| 648 int status; | |
| 649 pid_t pid; | |
| 650 | |
| 651 pid = waitpid(-1, &status, 0); | |
| 652 if(pid < 0 && errno != ECHILD) { | |
| 653 char errmsg[BUFSIZ]; | |
| 654 sprintf(errmsg, "Warning: waitpid() returned %d", pid); | |
| 655 perror(errmsg); | |
| 656 } | |
| 657 #endif | |
| 643 } | 658 } |
| 644 | 659 |
| 645 struct aim_user *find_user(const char *name, int protocol) | 660 struct aim_user *find_user(const char *name, int protocol) |
| 646 { | 661 { |
| 647 char *who = g_strdup(normalize(name)); | 662 char *who = g_strdup(normalize(name)); |
