Changeset 481 for trunk/src/sh_extern.c


Ignore:
Timestamp:
Jul 18, 2015, 5:06:52 PM (6 years ago)
Author:
katerina
Message:

Enhancements and fixes for tickets #374, #375, #376, #377, #378, and #379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_extern.c

    r440 r481  
    305305           */
    306306#if !defined(PDGBFILE)
    307           sh_unix_closeall (3, task->com_fd, SL_TRUE); /* in child process */
     307          sh_unix_closeall (3, task->com_fd, S_TRUE); /* in child process */
    308308#endif
    309309
     
    423423                char str1[128];
    424424                int ival = pfd;
    425                 int n = 0;
    426                 int m = 0;
     425                unsigned int n = 0;
     426                unsigned int m = 0;
    427427
    428428                if (ival < 0) ival = -ival;
     
    633633            {
    634634              task->exit_status = WEXITSTATUS(task->exit_status);
    635               if ((flag_err_debug == SL_TRUE) || (task->exit_status != 0))
     635              if ((flag_err_debug == S_TRUE) || (task->exit_status != 0))
    636636                sl_snprintf(infomsg, sizeof(infomsg),
    637637                            _("Subprocess exited normally with status %d"),
     
    687687      /*@+bufferoverflowhigh@*/
    688688      status = task->exit_status;
    689       if (flag_err_debug == SL_TRUE)
     689      if (flag_err_debug == S_TRUE)
    690690        {
    691691          sh_error_handle(SH_ERR_ALL, FIL__, __LINE__, task->exit_status,
     
    867867}
    868868
    869 int sh_ext_popen_init (sh_tas_t * task, char * command, char * argv0, ...)
     869int sh_ext_popen_init (sh_tas_t * task, const char * command, char * argv0, ...)
    870870{
    871871  va_list vl;
     
    956956 * ifconfig | grep -1 lo | tail -n 1 | sed s/.*inet addr:\([0-9.]*\)\(.*\)/\1/
    957957 */
    958 char * sh_ext_popen_str (char * command)
     958char * sh_ext_popen_str (const char * command)
    959959{
    960960  sh_tas_t task;
Note: See TracChangeset for help on using the changeset viewer.