| 33 |
|
#include <stdlib.h> |
| 34 |
|
#include <sys/types.h> |
| 35 |
|
#include <dirent.h> |
| 36 |
– |
#include <string.h> |
| 36 |
|
#endif |
| 37 |
+ |
#include <string.h> |
| 38 |
|
|
| 39 |
|
#ifdef SOLARIS |
| 40 |
|
#include <procfs.h> |
| 416 |
|
proctitle = NULL; |
| 417 |
|
|
| 418 |
|
do { |
| 419 |
< |
if(size >= buflen) { |
| 419 |
> |
if((long) size >= buflen) { |
| 420 |
|
buflen *= 2; |
| 421 |
|
size = buflen; |
| 422 |
|
proctitletmp = sg_realloc(proctitle, buflen); |
| 438 |
|
size = 0; |
| 439 |
|
break; |
| 440 |
|
} |
| 441 |
< |
} while(size >= buflen); |
| 441 |
> |
} while((long) size >= buflen); |
| 442 |
|
|
| 443 |
|
if(size > 0) { |
| 444 |
|
proc_state_ptr->proctitle = sg_malloc(size+1); |