Changeset 838 in MondoRescue for trunk/mondo/src/common


Ignore:
Timestamp:
Sep 26, 2006, 1:11:16 AM (18 years ago)
Author:
Bruno Cornec
Message:

Still trying to fix the compilation issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/common/newt-specific.c

    r837 r838  
    3333extern char *g_tmpfs_mountpt;
    3434extern char *g_mondo_home;
    35     extern char *ps_options;
     35extern char *ps_options;
    3636
    3737extern void set_signals(int);
     
    238238 * surrounded by spaces in its commandline.
    239239 */
    240 void kill_anything_like_this(char *str) {
    241 
    242 char *tmp = NULL;
    243 
    244 asprintf(&tmp,"kill `ps %s | grep \" %s \" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str);
     240static void
     241    kill_anything_like_this(char *str) {
     242
     243    char *tmp = NULL;
     244
     245    asprintf(&tmp,"kill `ps %s | grep \" %s \" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str);
    245246run_program_and_log_output(tmp, TRUE);
    246 paranoid_free(tmp);
     247    paranoid_free(tmp);
    247248}
    248249
Note: See TracChangeset for help on using the changeset viewer.