Mercurial > pidgin
comparison src/util.c @ 5435:a2f26666de42
[gaim-migrate @ 5817]
Phroggie says windows doesn't have a z modifier, so I'm just going to
change size_t to an int, since it really doesn't matter.
I also changed some sprintf's to snprintf's, I'm not really sure why.
Changed a printf to gaim_debug in oscar.c, I don't know how that got
in there. And I applied a patch that adds an optional callback thing
for when a connection is closed. Gaim doesn't use it, but the guy
that submitted the patch said it was useful to him.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 18 May 2003 19:13:21 +0000 |
parents | 8d8bf0d31a23 |
children | bb1e160467b6 |
comparison
equal
deleted
inserted
replaced
5434:3034e83c1a49 | 5435:a2f26666de42 |
---|---|
562 do { | 562 do { |
563 pid = waitpid(-1, &status, WNOHANG); | 563 pid = waitpid(-1, &status, WNOHANG); |
564 } while (pid != 0 && pid != (pid_t)-1); | 564 } while (pid != 0 && pid != (pid_t)-1); |
565 if(pid == (pid_t)-1 && errno != ECHILD) { | 565 if(pid == (pid_t)-1 && errno != ECHILD) { |
566 char errmsg[BUFSIZ]; | 566 char errmsg[BUFSIZ]; |
567 sprintf(errmsg, "Warning: waitpid() returned %d", pid); | 567 snprintf(errmsg, BUFSIZ, "Warning: waitpid() returned %d", pid); |
568 perror(errmsg); | 568 perror(errmsg); |
569 } | 569 } |
570 #endif | 570 #endif |
571 } | 571 } |
572 | 572 |