Changeset 0e5afa2


Ignore:
Timestamp:
Aug 22, 2009, 12:47:44 AM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
27f6487
Parents:
952f137
git-author:
Anders Kaseorg <andersk@mit.edu> (08/21/09 02:40:06)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/22/09 00:47:44)
Message:
Use pid_t type for pids.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r5ebc202 r0e5afa2  
    32423242    /* if it exited, fork & exec a new one */
    32433243    if (owl_global_get_newmsgproc_pid(&g)==0) {
    3244       int i, myargc;
     3244      pid_t i;
     3245      int myargc;
    32453246      i=fork();
    32463247      if (i) {
  • global.c

    r8742840 r0e5afa2  
    725725}
    726726
    727 void owl_global_set_newmsgproc_pid(owl_global *g, int i) {
     727void owl_global_set_newmsgproc_pid(owl_global *g, pid_t i) {
    728728  g->newmsgproc_pid=i;
    729729}
    730730
    731 int owl_global_get_newmsgproc_pid(const owl_global *g) {
     731pid_t owl_global_get_newmsgproc_pid(const owl_global *g) {
    732732  return(g->newmsgproc_pid);
    733733}
  • owl.h

    r8bce750 r0e5afa2  
    508508  owl_viewwin *vwin;
    509509  int winactive;
    510   int pid;                      /* or 0 if it has terminated */
     510  pid_t pid;                    /* or 0 if it has terminated */
    511511  owl_dispatch dispatch;
    512512} owl_popexec;
     
    558558  int colorpairs;
    559559  owl_colorpair_mgr cpmgr;
    560   int newmsgproc_pid;
     560  pid_t newmsgproc_pid;
    561561  int malloced, freed;
    562562  owl_regex search_re;
  • popexec.c

    re19eb97 r0e5afa2  
    1515  owl_viewwin *v;
    1616  int pipefds[2], child_write_fd, parent_read_fd;
    17   int pid;
     17  pid_t pid;
    1818
    1919  pe = owl_malloc(sizeof(owl_popexec));
Note: See TracChangeset for help on using the changeset viewer.