Merging sensors

Hi, i merged the machine codes of the HMC5883L magnetometer sensor and MMA7361L accelerometer sensor to work together on an Arduino board by renaming the setup and loop functions. The program compiles with no error but i am unable to obtain any data from the sensors. Any idea guys?

It is difficult to troubleshoot code that we can not see. Here is a link to information on merging code.Merging Code

I'm guessing the answer is on line 47 of your code.

My bad, ill attach the codes.

magnetometer_accelerometer.ino (2.66 KB)