Permalink
Browse files

Use name attributes instead of type attributes

This has been changed in CPC.
  • Loading branch information...
1 parent 62eb6cd commit 37792034df5aacf7fe09660618d497c2a9212240 @kerneis committed Nov 25, 2010
Showing with 4 additions and 3 deletions.
  1. +2 −1 server.cpc
  2. +2 −2 util.h
View
@@ -314,9 +314,10 @@ map_file(struct torrent *t, int index)
}
int
-(__attribute__((cpc_no_retain)) find_chunk)(struct torrent *t, uint64_t begin, uint64_t length,
+find_chunk(struct torrent *t, uint64_t begin, uint64_t length,
int *first_return, int *last_return,
uint64_t *offset_return, uint64_t *last_len_return)
+ __attribute__((cpc_no_retain))
{
int i, first = -1, last = -1;
uint64_t offset, last_len;
View
@@ -50,13 +50,13 @@ extern size_t pagesize;
memcpy((_d), &(_dd), sizeof(unsigned)); } while(0);
#endif
-void (__attribute__((cpc_no_retain))debugf)(int level, const char *format, ...);
+void debugf(int level, const char *format, ...) __attribute__((cpc_no_retain));
int prefetch(void *begin, size_t length);
int incore(void *begin, size_t length);
int get_source_address(const struct sockaddr *dst, socklen_t dst_len,
struct sockaddr *src, socklen_t *src_len);
int get_name_source_address(int af, const char *name,
struct sockaddr *src, socklen_t *src_len);
int global_unicast_address(struct sockaddr *sa);
-int (__attribute__((cpc_no_retain))find_global_address)(int af, void *addr, int *addr_len);
+int find_global_address(int af, void *addr, int *addr_len) __attribute__((cpc_no_retain));

0 comments on commit 3779203

Please sign in to comment.