Remove return of value for afs_MarinerLogFetch()
authorAntoine Verheijen <antoine@ualberta.ca>
Mon, 15 Mar 2010 19:49:31 +0000 (13:49 -0600)
committerDerrick Brashear <shadow@dementia.org>
Mon, 15 Mar 2010 20:14:24 +0000 (13:14 -0700)
afs_MarinerLogFetch(), a void routine, attempts to return a value.
While gcc (amongst others) merely issues a warning about this, the
Sun Studio C compiler gets cranky (at least on x86) and treats it as
a hard error, thereby aborting the build. Since there actually is no
value to return, this update simply removes the attempt.

Change-Id: Ic89fb05380a25a433f9c3b9fa57962f215348d95
Reviewed-on: http://gerrit.openafs.org/1574
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/afs_mariner.c

index 66711dc..6912eed 100644 (file)
@@ -71,7 +71,7 @@ void
 afs_MarinerLogFetch(register struct vcache *avc, register afs_int32 off,
                    register afs_int32 bytes, register afs_int32 idx)
 {
-    return afs_MarinerLog("fetch$Fetching", avc);
+    afs_MarinerLog("fetch$Fetching", avc);
 }                              /*afs_MarinerLogFetch */
 
 void