Changeset 11205 for fact/BIASctrl


Ignore:
Timestamp:
06/28/11 14:28:46 (14 years ago)
Author:
ogrimm
Message:
Adaptions to allow compilation on Ubuntu
Location:
fact/BIASctrl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • fact/BIASctrl/BIASctrl.cc

    r10153 r11205  
    2929  siginterrupt(SIGTERM, true);
    3030
    31   system("clear");                   
     31  if (system("clear") == -1) printf("Error with system() call\n");
     32                   
    3233  printf("\n*** BIASctrl (compiled %s, %s) ***\n\n", __DATE__, __TIME__);
    3334   
  • fact/BIASctrl/Crate.cc

    r10905 r11205  
    134134        FD_ZERO(&SelectDescriptor);   FD_SET(fDescriptor, &SelectDescriptor);
    135135        if (select(fDescriptor+1, &SelectDescriptor, NULL, NULL, &WaitTime)==-1) {
    136           if (errno = EINTR) goto ExitCommunicate;  // in case program is exiting
     136          if (errno == EINTR) goto ExitCommunicate;  // in case program is exiting
    137137      m->Message(m->FATAL, "Error with select() (%s)", strerror(errno));
    138138        }
  • fact/BIASctrl/History.txt

    r10905 r11205  
    1212                        Added 'crate' command. Changed signaling of program exit.
    13133/6/2011        Fixed bug in channel addressing from board numbers above 7.
     1428/6/2011       Adapted for compilation under ubuntu
  • fact/BIASctrl/Makefile

    r10049 r11205  
    66
    77CPPFLAGS = -O3 -Wall $(INCDIRS)
    8 LDLIBS = -L/usr/lib/termcap -lstdc++ -lpthread -lfl -lreadline -ltermcap $(DIMDIR)/linux/libdim.a
     8LDLIBS = -L/usr/lib/termcap -lstdc++ -lpthread -lreadline -ltermcap $(DIMDIR)/linux/libdim.a
    99
    1010BIASctrl: $(OBJECTS)
  • fact/BIASctrl/User.cc

    r10153 r11205  
    114114  // Shell command
    115115  if(Command[0]=='.') {
    116     system(Command.c_str()+1);
     116    if (system(Command.c_str()+1) == 1) {
     117          PrintMessage("Error with system() call\n");
     118        }
    117119    return;
    118120  }
     
    620622bool User::ConvertToRange(string String, struct User::Range &R) {
    621623
    622   int N, M;
     624  int N=0, M=0; // Init to avoid compiler warning
    623625
    624626  // Full range
Note: See TracChangeset for help on using the changeset viewer.