]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afsmonitor: Use NULL, rather than (struct foo *)0
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 26 Feb 2013 20:52:47 +0000 (20:52 +0000)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 3 Jun 2014 16:14:44 +0000 (12:14 -0400)
Reviewed-on: http://gerrit.openafs.org/9285
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit caabad98232557220f153461520fc0cf1c6978fb)

Change-Id: Ie1e0e1bb4dcae88f17c592b4ebccaef227298190
Reviewed-on: http://gerrit.openafs.org/11016
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afsmonitor/afsmonitor.c

index a1e4904e4e7692ab73b7800ae5611bec317bccb4..1fb2f8a88f3f0baf8a0064efda387456ce7fa66d 100644 (file)
@@ -481,22 +481,22 @@ afsmon_Exit(int a_exitVal)        /* exit code */
 
 
     /* deallocate FS & CM Print buffers */
-    if (curr_fsData != (struct fs_Display_Data *)0) {
+    if (curr_fsData != NULL) {
        if (afsmon_debug)
            fprintf(debugFD, "Deallocating FS Print Buffers .... curr");
        free(curr_fsData);
     }
-    if (prev_fsData != (struct fs_Display_Data *)0) {
+    if (prev_fsData != NULL) {
        if (afsmon_debug)
            fprintf(debugFD, ", prev \n");
        free(prev_fsData);
     }
-    if (curr_cmData != (struct cm_Display_Data *)0) {
+    if (curr_cmData != NULL) {
        if (afsmon_debug)
            fprintf(debugFD, "Deallocating CM Print Buffers .... curr");
        free(curr_cmData);
     }
-    if (prev_cmData != (struct cm_Display_Data *)0) {
+    if (prev_cmData != NULL) {
        if (afsmon_debug)
            fprintf(debugFD, ", prev \n");
        free(prev_cmData);