Error in Embedded C code for Motor Shield

The Motor Shield is made of a 8 bit shift register and 2 motor drivers. I need the Shield to run the motors or i would fry the board.