* pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.
(pinfo::operator == (char *)): Remove unused operator. * pinfo.cc (pinfo::status_exit): Move this function info pinfo class. Use progname from the pinfo rather than myself. Be defensive when inspecting procinfo.
This commit is contained in:
@@ -179,7 +179,6 @@ public:
|
||||
int operator == (_pinfo *x) const {return x == procinfo;}
|
||||
int operator == (void *x) const {return procinfo == x;}
|
||||
int operator == (int x) const {return (int) procinfo == (int) x;}
|
||||
int operator == (char *x) const {return (char *) procinfo == x;}
|
||||
_pinfo *operator * () const {return procinfo;}
|
||||
operator _pinfo * () const {return procinfo;}
|
||||
void preserve () { destroy = false; }
|
||||
@@ -206,6 +205,8 @@ public:
|
||||
void set_acl ();
|
||||
friend class _pinfo;
|
||||
friend class winpids;
|
||||
private:
|
||||
DWORD status_exit (DWORD);
|
||||
};
|
||||
|
||||
#define ISSTATE(p, f) (!!((p)->process_state & f))
|
||||
|
Reference in New Issue
Block a user