X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdaemon.h;h=83c9672dda602d59f61faa2e684280864a908732;hb=acbcbfaf39592b0b9c1864740ff0b3baad053b2e;hp=2a2b840a8d36483921db09ca3cc1863873763eb0;hpb=adf20c0c4d9f488d55254f54a79079b9cacbde8d;p=libguestfs.git diff --git a/daemon/daemon.h b/daemon/daemon.h index 2a2b840..83c9672 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -91,7 +91,7 @@ extern guestfs_int_lvm_vg_list *parse_command_line_vgs (void); extern guestfs_int_lvm_lv_list *parse_command_line_lvs (void); /*-- in proto.c --*/ -extern void main_loop (int sock); +extern void main_loop (int sock) __attribute__((noreturn)); /* ordinary daemon functions use these to indicate errors */ extern void reply_with_error (const char *fs, ...) @@ -116,7 +116,7 @@ extern void cancel_receive (void); * Note max write size if GUESTFS_MAX_CHUNK_SIZE. */ extern int send_file_write (const void *buf, int len); -extern void send_file_end (int cancel); +extern int send_file_end (int cancel); /* only call this if there is a FileOut parameter */ extern void reply (xdrproc_t xdrp, char *ret);