]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: Fix function const, when not all serial() are const. 24702/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 22 Oct 2018 19:42:30 +0000 (21:42 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 23 Oct 2018 13:32:56 +0000 (15:32 +0200)
commitd7faa0de0b53b3a2986d21893d65265936656339
tree2a42e0e63bf6c626fc4d0a20013b87ca35cb3292
parent9d79acdaacad0d61c8f260608cf13b92fd9cee5f
common: Fix function const, when not all serial() are const.

And then Clang complains:
```
/home/jenkins/workspace/ceph-master/src/common/blkdev.cc:700:13: error: out-of-line definition of 'serial' does not match any declaration in 'Bl
kDev'
int BlkDev::serial(char *serial, size_t max)
            ^~~~~~
/home/jenkins/workspace/ceph-master/src/common/blkdev.h:50:7: note: member declaration does not match because it is const qualified
  int serial(char *serial, size_t max) const;
      ^                                ~~~~~
1 error generated.
```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/blkdev.cc