Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Register
  • nbdkit
  • libnbd
  • Repository
  • libnbd
  • examples
  • copy-libev.c
Find file Blame History Permalink
  • Laszlo Ersek's avatar
    examples/copy-libev: wrap source code at 80 characters · 3d19d834
    Laszlo Ersek authored Apr 18, 2023
    The invocation instructions for the copy-libev example are a bit too wide.
    The obvious wrapping
    
      ./copy-ev \
        nbd+unix:///?socket=/tmp/src.sock \
        nbd+unix:///?socket=/tmp/dst.sock
    
    is not desirable in a C-language comment, because the C standard places
    line splicing before comment squashing (translation phases #2 and #3,
    respectively). Therefore use shell variables.
    
    While at it, fix a small typo (from commit 6be6a902, "examples: Add
    example for integrating with libev", 2021-03-01): the executable is called
    "copy-libev", not "copy-ev".
    
    Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
    
    
    Signed-off-by: default avatarLaszlo Ersek <lersek@redhat.com>
    Message-Id: <20230418172631.485472-2-lersek@redhat.com>
    Reviewed-by: default avatarRichard W.M. Jones <rjones@redhat.com>
    Reviewed-by: Eric Blake's avatarEric Blake <eblake@redhat.com>
    3d19d834