Skip to content

Commit

Permalink
Fix some more compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 3e2d426 commit 3192da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/dird/catreq.c
Expand Up @@ -297,12 +297,8 @@ void catalog_request(JCR *jcr, BSOCK *bs)
mr.Slot = sdmr.Slot;
mr.InChanger = sdmr.InChanger;
bstrncpy(mr.VolStatus, sdmr.VolStatus, sizeof(mr.VolStatus));
if (sdmr.VolReadTime >= 0) {
mr.VolReadTime = sdmr.VolReadTime;
}
if (sdmr.VolWriteTime >= 0) {
mr.VolWriteTime = sdmr.VolWriteTime;
}
mr.VolReadTime = sdmr.VolReadTime;
mr.VolWriteTime = sdmr.VolWriteTime;

Dmsg2(400, "db_update_media_record. Stat=%s Vol=%s\n", mr.VolStatus, mr.VolumeName);
/*
Expand Down
2 changes: 1 addition & 1 deletion src/dird/ua_dotcmds.c
Expand Up @@ -364,7 +364,7 @@ static bool dot_bvfs_cleanup(UAContext *ua, const char *cmd)
int i;

if ((i = find_arg_with_value(ua, "path")) >= 0) {
if (!open_client_db(ua), true) {
if (!open_client_db(ua, true)) {
return false;
}
Bvfs fs(ua->jcr, ua->db);
Expand Down

0 comments on commit 3192da1

Please sign in to comment.