]> 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)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 27 Feb 2013 20:36:58 +0000 (12:36 -0800)
Change-Id: Ib011da471465dae056d47f5bbaad5a27b5c85966
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>
src/afsmonitor/afsmonitor.c

index 953ba04b5608dcbdb6a61b395b35c4717063e7b4..1f019a6f1d102e4bcf3ab5bde4e13a0f1dfd6705 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);