SHARE
TWEET

Untitled

a guest May 6th, 2011 126 Never
  1.       for (i = 0; i < rtems_bsdnet_nameserver_count; i++) {
  2.         strcpy(buf, "nameserver ");
  3.         strcat(buf, inet_ntoa(rtems_bsdnet_ntpserver[i]));
  4.         strcat(buf, "\n");
  5.         if (rtems_rootfs_file_append ("/etc/resolv.conf", MKFILE_MODE, 1, bufl))
  6.           break;
  7.       }
RAW Paste Data
Top