Changeset 5279:bb3ff1f2be28 in roaraudio for roard/req.c
- Timestamp:
- 11/21/11 18:28:31 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/req.c
r5216 r5279 750 750 struct roar_server_info info; 751 751 uint16_t * d16; 752 #ifdef ROAR_HAVE_GETHOSTID 753 long hostid; 754 char hostidbuf[64]; 755 #endif 752 756 753 757 if ( mes->datalen != 4 ) … … 771 775 } 772 776 777 info.license = "GPL-3.0"; 778 779 #ifdef ROAR_HAVE_GETHOSTID 780 hostid = gethostid(); 781 snprintf(hostidbuf, sizeof(hostidbuf), sizeof(long) == 8 ? "0x%.16lx" : "0x%.8lx", hostid); 782 info.hostid = hostidbuf; 783 #endif 784 773 785 if ( !!strcmp(g_config->location, CONF_DEF_STRING) ) 774 786 info.location = g_config->location; 775 787 776 788 if ( !!strcmp(g_config->description, CONF_DEF_STRING) ) 777 info.description = g_config->description; 789 info.description = g_config->description; 790 791 info.contact = g_config->contact; 792 info.serial = g_config->serial; 793 info.uiurl = g_config->uiurl; 778 794 779 795 #ifdef ROAR_HAVE_UNAME
Note: See TracChangeset
for help on using the changeset viewer.